Class Source
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanWhen included in a request, the parameter depends on the repository type.The application's version.In requests, the repository's SSH key.getType()The repository type.getUrl()The source URL.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.voidIn requests, the repository's SSH key.voidsetType(SourceType type) The repository type.voidThe repository type.voidThe source URL.voidsetUsername(String username) This parameter depends on the repository type.toString()Returns a string representation of this object; useful for testing and debugging.withPassword(String password) When included in a request, the parameter depends on the repository type.withRevision(String revision) The application's version.withSshKey(String sshKey) In requests, the repository's SSH key.withType(SourceType type) The repository type.The repository type.The source URL.withUsername(String username) This parameter depends on the repository type.
-
Constructor Details
-
Source
public Source()
-
-
Method Details
-
setType
The repository type.
- Parameters:
type- The repository type.- See Also:
-
getType
-
withType
-
setType
The repository type.
- Parameters:
type- The repository type.- See Also:
-
withType
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:
-
setUrl
-
getUrl
-
withUrl
-
setUsername
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
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
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
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
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
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
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
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
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
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
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
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
-
equals
-
hashCode
-
clone
-