@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Source extends Object implements Serializable, Cloneable, StructuredPojo
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 |
---|---|
Source |
clone() |
boolean |
equals(Object obj) |
String |
getPassword()
When included in a request, the parameter depends on the repository type.
|
String |
getRevision()
The application's version.
|
String |
getSshKey()
In requests, 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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPassword(String password)
When included in a request, the parameter depends on the repository type.
|
void |
setRevision(String revision)
The application's version.
|
void |
setSshKey(String sshKey)
In requests, 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)
When included in a request, the parameter depends on the repository type.
|
Source |
withRevision(String revision)
The application's version.
|
Source |
withSshKey(String sshKey)
In requests, 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 void setType(String type)
The repository type.
type
- The repository type.SourceType
public String getType()
The repository type.
SourceType
public Source withType(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(String url)
The source URL. The following is an example of an Amazon S3 source URL:
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.
url
- The source URL. The following is an example of an Amazon S3 source URL:
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.public String getUrl()
The source URL. The following is an example of an Amazon S3 source URL:
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.public Source withUrl(String url)
The source URL. The following is an example of an Amazon S3 source URL:
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.
url
- The source URL. The following is an example of an Amazon S3 source URL:
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.public void setUsername(String username)
This parameter depends on the repository type.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user name.
username
- This parameter depends on the repository type.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user
name.
public String getUsername()
This parameter depends on the repository type.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user name.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user
name.
public Source withUsername(String username)
This parameter depends on the repository type.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user name.
username
- This parameter depends on the repository type.
For Amazon S3 bundles, set Username
to the appropriate IAM access key ID.
For HTTP bundles, Git repositories, and Subversion repositories, set Username
to the user
name.
public void setPassword(String password)
When included in a request, the parameter depends on the repository type.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
password
- When included in a request, the parameter depends on the repository type.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public String getPassword()
When included in a request, the parameter depends on the repository type.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public Source withPassword(String password)
When included in a request, the parameter depends on the repository type.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
password
- When included in a request, the parameter depends on the repository type.
For Amazon S3 bundles, set Password
to the appropriate IAM secret access key.
For HTTP bundles and Subversion repositories, set Password
to the password.
For more information on how to safely handle IAM credentials, see http://docs.aws.amazon.com/general/latest/gr/aws-access-keys-best-practices.html.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public void setSshKey(String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
sshKey
- In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public String getSshKey()
In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public Source withSshKey(String sshKey)
In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
sshKey
- In requests, the repository's SSH key.
In responses, AWS OpsWorks Stacks returns *****FILTERED*****
instead of the actual value.
public void setRevision(String revision)
The application's version. AWS OpsWorks Stacks 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 Stacks 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 getRevision()
The application's version. AWS OpsWorks Stacks 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)
The application's version. AWS OpsWorks Stacks 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 Stacks 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()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.