public class Source extends Object implements Serializable
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks .
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getPassword()
This parameter depends on the repository type.
|
String |
getRevision()
The application's version.
|
String |
getSshKey()
The repository's SSH key.
|
String |
getType()
The repository type.
|
String |
getUrl()
The source URL.
|
String |
getUsername()
This parameter depends on the repository type.
|
int |
hashCode() |
void |
setPassword(String password)
This parameter depends on the repository type.
|
void |
setRevision(String revision)
The application's version.
|
void |
setSshKey(String sshKey)
The repository's SSH key.
|
void |
setType(SourceType type)
The repository type.
|
void |
setType(String type)
The repository type.
|
void |
setUrl(String url)
The source URL.
|
void |
setUsername(String username)
This parameter depends on the repository type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Source |
withPassword(String password)
This parameter depends on the repository type.
|
Source |
withRevision(String revision)
The application's version.
|
Source |
withSshKey(String sshKey)
The repository's SSH key.
|
Source |
withType(SourceType type)
The repository type.
|
Source |
withType(String type)
The repository type.
|
Source |
withUrl(String url)
The source URL.
|
Source |
withUsername(String username)
This parameter depends on the repository type.
|
public String getType()
Constraints:
Allowed Values: git, svn, archive, s3
SourceType
public void setType(String type)
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public Source withType(String type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public void setType(SourceType type)
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public Source withType(SourceType type)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: git, svn, archive, s3
type
- The repository type.SourceType
public String getUrl()
public void setUrl(String url)
url
- The source URL.public Source withUrl(String url)
Returns a reference to this object so that method calls can be chained together.
url
- The source URL.public String getUsername()
Username
to the appropriate IAM access key
ID.Username
to the user name.Username
to the appropriate IAM access key
ID.Username
to the user name.public void setUsername(String username)
Username
to the appropriate IAM access key
ID.Username
to the user name.username
- This parameter depends on the repository type. Username
to the appropriate IAM access key
ID.Username
to the user name.public Source withUsername(String username)
Username
to the appropriate IAM access key
ID.Username
to the user name.Returns a reference to this object so that method calls can be chained together.
username
- This parameter depends on the repository type. Username
to the appropriate IAM access key
ID.Username
to the user name.public String getPassword()
public void setPassword(String password)
public Source withPassword(String password)
Password
to the appropriate IAM secret
access key.Password
to the password.For more information on how to safely handle IAM credentials, see .
Returns a reference to this object so that method calls can be chained together.
password
- This parameter depends on the repository type. Password
to the appropriate IAM secret
access key.Password
to the password.For more information on how to safely handle IAM credentials, see .
public String getSshKey()
public void setSshKey(String sshKey)
sshKey
- The repository's SSH key.public Source withSshKey(String sshKey)
Returns a reference to this object so that method calls can be chained together.
sshKey
- The repository's SSH key.public String getRevision()
public void setRevision(String revision)
revision
- The application's version. AWS OpsWorks enables you to easily deploy
new versions of an application. One of the simplest approaches is to
have branches or revisions in your repository that represent different
versions that can potentially be deployed.public Source withRevision(String revision)
Returns a reference to this object so that method calls can be chained together.
revision
- The application's version. AWS OpsWorks enables you to easily deploy
new versions of an application. One of the simplest approaches is to
have branches or revisions in your repository that represent different
versions that can potentially be deployed.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.