@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachmentsSource extends Object implements Serializable, Cloneable, StructuredPojo
Identifying information about a document attachment, including the file name and a key-value pair that identifies the location of an attachment to a document.
Constructor and Description |
---|
AttachmentsSource() |
Modifier and Type | Method and Description |
---|---|
AttachmentsSource |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of a key-value pair that identifies the location of an attachment to a document.
|
String |
getName()
The name of the document attachment file.
|
List<String> |
getValues()
The value of a key-value pair that identifies the location of an attachment to a document.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key of a key-value pair that identifies the location of an attachment to a document.
|
void |
setName(String name)
The name of the document attachment file.
|
void |
setValues(Collection<String> values)
The value of a key-value pair that identifies the location of an attachment to a document.
|
String |
toString()
Returns a string representation of this object.
|
AttachmentsSource |
withKey(AttachmentsSourceKey key)
The key of a key-value pair that identifies the location of an attachment to a document.
|
AttachmentsSource |
withKey(String key)
The key of a key-value pair that identifies the location of an attachment to a document.
|
AttachmentsSource |
withName(String name)
The name of the document attachment file.
|
AttachmentsSource |
withValues(Collection<String> values)
The value of a key-value pair that identifies the location of an attachment to a document.
|
AttachmentsSource |
withValues(String... values)
The value of a key-value pair that identifies the location of an attachment to a document.
|
public void setKey(String key)
The key of a key-value pair that identifies the location of an attachment to a document.
key
- The key of a key-value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public String getKey()
The key of a key-value pair that identifies the location of an attachment to a document.
AttachmentsSourceKey
public AttachmentsSource withKey(String key)
The key of a key-value pair that identifies the location of an attachment to a document.
key
- The key of a key-value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public AttachmentsSource withKey(AttachmentsSourceKey key)
The key of a key-value pair that identifies the location of an attachment to a document.
key
- The key of a key-value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public List<String> getValues()
The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
public void setValues(Collection<String> values)
The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
values
- The value of a key-value pair that identifies the location of an attachment to a document. The format for
Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
public AttachmentsSource withValues(String... values)
The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- The value of a key-value pair that identifies the location of an attachment to a document. The format for
Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
public AttachmentsSource withValues(Collection<String> values)
The value of a key-value pair that identifies the location of an attachment to a document. The format for Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
values
- The value of a key-value pair that identifies the location of an attachment to a document. The format for
Value depends on the type of key you specify.
For the key SourceUrl, the value is an S3 bucket location. For example:
"Values": [ "s3://doc-example-bucket/my-folder" ]
For the key S3FileUrl, the value is a file in an S3 bucket. For example:
"Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ]
For the key AttachmentReference, the value is constructed from the name of another SSM document in your account, a version number of that document, and a file attached to that document version that you want to reuse. For example:
"Values": [ "MyOtherDocument/3/my-other-file.py" ]
However, if the SSM document is shared with you from another account, the full SSM document ARN must be specified instead of the document name only. For example:
"Values": [ "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" ]
public void setName(String name)
The name of the document attachment file.
name
- The name of the document attachment file.public String getName()
The name of the document attachment file.
public AttachmentsSource withName(String name)
The name of the document attachment file.
name
- The name of the document attachment file.public String toString()
toString
in class Object
Object.toString()
public AttachmentsSource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.