@Generated(value="software.amazon.awssdk:codegen") public final class Source extends Object implements StructuredPojo, ToCopyableBuilder<Source.Builder,Source>
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 | Class and Description |
---|---|
static interface |
Source.Builder |
Modifier and Type | Method and Description |
---|---|
static Source.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
password()
When included in a request, the parameter depends on the repository type.
|
String |
revision()
The application's version.
|
static Class<? extends Source.Builder> |
serializableBuilderClass() |
String |
sshKey()
In requests, the repository's SSH key.
|
Source.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
SourceType |
type()
The repository type.
|
String |
typeAsString()
The repository type.
|
String |
url()
The source URL.
|
String |
username()
This parameter depends on the repository type.
|
copy
public SourceType type()
The repository type.
If the service returns an enum value that is not available in the current SDK version, type
will return
SourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
SourceType
public String typeAsString()
The repository type.
If the service returns an enum value that is not available in the current SDK version, type
will return
SourceType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
typeAsString()
.
SourceType
public 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
.
https://s3.amazonaws.com/opsworks-demo-bucket/opsworks_cookbook_demo.tar.gz
.public 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.
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 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.
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 sshKey()
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 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.
public Source.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Source.Builder,Source>
public static Source.Builder builder()
public static Class<? extends Source.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.