Class Source
- java.lang.Object
-
- com.amazonaws.services.opsworks.model.Source
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Source extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sourceclone()booleanequals(Object obj)StringgetPassword()When included in a request, the parameter depends on the repository type.StringgetRevision()The application's version.StringgetSshKey()In requests, the repository's SSH key.StringgetType()The repository type.StringgetUrl()The source URL.StringgetUsername()This parameter depends on the repository type.inthashCode()voidsetPassword(String password)When included in a request, the parameter depends on the repository type.voidsetRevision(String revision)The application's version.voidsetSshKey(String sshKey)In requests, the repository's SSH key.voidsetType(SourceType type)The repository type.voidsetType(String type)The repository type.voidsetUrl(String url)The source URL.voidsetUsername(String username)This parameter depends on the repository type.StringtoString()Returns a string representation of this object; useful for testing and debugging.SourcewithPassword(String password)When included in a request, the parameter depends on the repository type.SourcewithRevision(String revision)The application's version.SourcewithSshKey(String sshKey)In requests, the repository's SSH key.SourcewithType(SourceType type)The repository type.SourcewithType(String type)The repository type.SourcewithUrl(String url)The source URL.SourcewithUsername(String username)This parameter depends on the repository type.
-
-
-
Method Detail
-
setType
public void setType(String type)
The repository type.
- Parameters:
type- The repository type.- See Also:
SourceType
-
getType
public String getType()
The repository type.
- Returns:
- The repository type.
- See Also:
SourceType
-
withType
public Source withType(String type)
The repository type.
- Parameters:
type- The repository type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SourceType
-
setType
public void setType(SourceType type)
The repository type.
- Parameters:
type- The repository type.- See Also:
SourceType
-
withType
public Source withType(SourceType type)
The repository type.
- Parameters:
type- The repository type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SourceType
-
setUrl
public void setUrl(String url)
The source URL.
- Parameters:
url- The source URL.
-
getUrl
public String getUrl()
The source URL.
- Returns:
- The source URL.
-
withUrl
public Source withUrl(String url)
The source URL.
- Parameters:
url- The source URL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUsername
public void setUsername(String username)
This parameter depends on the repository type.
- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion repositories, set
Usernameto the user name.
- Parameters:
username- This parameter depends on the repository type.- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion
repositories, set
Usernameto the user name.
- For Amazon S3 bundles, set
- For Amazon S3 bundles, set
-
getUsername
public String getUsername()
This parameter depends on the repository type.
- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion repositories, set
Usernameto the user name.
- Returns:
- This parameter depends on the repository type.
- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion
repositories, set
Usernameto the user name.
- For Amazon S3 bundles, set
- For Amazon S3 bundles, set
-
withUsername
public Source withUsername(String username)
This parameter depends on the repository type.
- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion repositories, set
Usernameto the user name.
- Parameters:
username- This parameter depends on the repository type.- For Amazon S3 bundles, set
Usernameto the appropriate IAM access key ID. - For HTTP bundles, Git repositories, and Subversion
repositories, set
Usernameto the user name.
- For Amazon S3 bundles, set
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- For Amazon S3 bundles, set
-
setPassword
public void setPassword(String password)
When included in a request, the parameter depends on the repository type.
- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Parameters:
password- When included in a request, the parameter depends on the repository type.- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- For Amazon S3 bundles, set
- For Amazon S3 bundles, set
-
getPassword
public String getPassword()
When included in a request, the parameter depends on the repository type.
- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Returns:
- When included in a request, the parameter depends on the
repository type.
- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value. - For Amazon S3 bundles, set
- For Amazon S3 bundles, set
-
withPassword
public Source withPassword(String password)
When included in a request, the parameter depends on the repository type.
- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Parameters:
password- When included in a request, the parameter depends on the repository type.- For Amazon S3 bundles, set
Passwordto the appropriate IAM secret access key. - For HTTP bundles and Subversion repositories, set
Passwordto the password.
For more information on how to safely handle IAM credentials, see .
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- For Amazon S3 bundles, set
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- For Amazon S3 bundles, set
-
setSshKey
public void setSshKey(String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Parameters:
sshKey- In requests, the repository's SSH key.In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.
-
getSshKey
public String getSshKey()
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Returns:
- In requests, the repository's SSH key.
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.
-
withSshKey
public Source withSshKey(String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Parameters:
sshKey- In requests, the repository's SSH key.In responses, AWS OpsWorks returns
*****FILTERED*****instead of the actual value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRevision
public void setRevision(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.
- Parameters:
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.
-
getRevision
public 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.
- Returns:
- 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.
-
withRevision
public Source withRevision(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-