@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachmentsSource extends Object implements Serializable, Cloneable, StructuredPojo
A key and 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 and value pair that identifies the location of an attachment to a document.
|
List<String> |
getValues()
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key of a key and value pair that identifies the location of an attachment to a document.
|
void |
setValues(Collection<String> values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
|
String |
toString()
Returns a string representation of this object.
|
AttachmentsSource |
withKey(AttachmentsSourceKey key)
The key of a key and value pair that identifies the location of an attachment to a document.
|
AttachmentsSource |
withKey(String key)
The key of a key and value pair that identifies the location of an attachment to a document.
|
AttachmentsSource |
withValues(Collection<String> values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
|
AttachmentsSource |
withValues(String... values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
|
public void setKey(String key)
The key of a key and value pair that identifies the location of an attachment to a document.
key
- The key of a key and value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public String getKey()
The key of a key and value pair that identifies the location of an attachment to a document.
AttachmentsSourceKey
public AttachmentsSource withKey(String key)
The key of a key and value pair that identifies the location of an attachment to a document.
key
- The key of a key and value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public AttachmentsSource withKey(AttachmentsSourceKey key)
The key of a key and value pair that identifies the location of an attachment to a document.
key
- The key of a key and value pair that identifies the location of an attachment to a document.AttachmentsSourceKey
public List<String> getValues()
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
public void setValues(Collection<String> values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
values
- The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.public AttachmentsSource withValues(String... values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
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 URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.public AttachmentsSource withValues(Collection<String> values)
The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
values
- The URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.