public class Source
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the information required to retrieve an app or cookbook from a repository. For more information, see Creating Apps or Custom Recipes and Cookbooks.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
password
When included in a request, the parameter depends on the repository type.
|
private java.lang.String |
revision
The application's version.
|
private java.lang.String |
sshKey
In requests, the repository's SSH key.
|
private java.lang.String |
type
The repository type.
|
private java.lang.String |
url
The source URL.
|
private java.lang.String |
username
This parameter depends on the repository type.
|
Constructor and Description |
---|
Source() |
Modifier and Type | Method and Description |
---|---|
Source |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getPassword()
When included in a request, the parameter depends on the repository type.
|
java.lang.String |
getRevision()
The application's version.
|
java.lang.String |
getSshKey()
In requests, the repository's SSH key.
|
java.lang.String |
getType()
The repository type.
|
java.lang.String |
getUrl()
The source URL.
|
java.lang.String |
getUsername()
This parameter depends on the repository type.
|
int |
hashCode() |
void |
setPassword(java.lang.String password)
When included in a request, the parameter depends on the repository type.
|
void |
setRevision(java.lang.String revision)
The application's version.
|
void |
setSshKey(java.lang.String sshKey)
In requests, the repository's SSH key.
|
void |
setType(SourceType type)
The repository type.
|
void |
setType(java.lang.String type)
The repository type.
|
void |
setUrl(java.lang.String url)
The source URL.
|
void |
setUsername(java.lang.String username)
This parameter depends on the repository type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Source |
withPassword(java.lang.String password)
When included in a request, the parameter depends on the repository type.
|
Source |
withRevision(java.lang.String revision)
The application's version.
|
Source |
withSshKey(java.lang.String sshKey)
In requests, the repository's SSH key.
|
Source |
withType(SourceType type)
The repository type.
|
Source |
withType(java.lang.String type)
The repository type.
|
Source |
withUrl(java.lang.String url)
The source URL.
|
Source |
withUsername(java.lang.String username)
This parameter depends on the repository type.
|
private java.lang.String type
The repository type.
private java.lang.String url
The source URL.
private java.lang.String username
This parameter depends on the repository type.
Username
to the appropriate
IAM access key ID.Username
to the user name.private java.lang.String password
When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
private java.lang.String sshKey
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
private java.lang.String 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 void setType(java.lang.String type)
The repository type.
type
- The repository type.SourceType
public java.lang.String getType()
The repository type.
SourceType
public Source withType(java.lang.String type)
The repository type.
type
- The repository type.SourceType
public void setType(SourceType type)
The repository type.
type
- The repository type.SourceType
public Source withType(SourceType type)
The repository type.
type
- The repository type.SourceType
public void setUrl(java.lang.String url)
The source URL.
url
- The source URL.public java.lang.String getUrl()
The source URL.
public Source withUrl(java.lang.String url)
The source URL.
url
- The source URL.public void setUsername(java.lang.String username)
This parameter depends on the repository type.
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 java.lang.String getUsername()
This parameter depends on the repository type.
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 Source withUsername(java.lang.String username)
This parameter depends on the repository type.
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 void setPassword(java.lang.String password)
When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
password
- When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public java.lang.String getPassword()
When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
Password
to the
appropriate IAM secret access key.Password
to the password.For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.
public Source withPassword(java.lang.String password)
When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
password
- When included in a request, the 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 .
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public void setSshKey(java.lang.String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
sshKey
- In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public java.lang.String getSshKey()
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
In responses, AWS OpsWorks returns
*****FILTERED*****
instead of the actual value.
public Source withSshKey(java.lang.String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
sshKey
- In requests, the repository's SSH key.
In responses, AWS OpsWorks returns *****FILTERED*****
instead of the actual value.
public void setRevision(java.lang.String 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.
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 java.lang.String getRevision()
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(java.lang.String 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.
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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Source clone()
clone
in class java.lang.Object