@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 is 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 value of a key-value pair that identifies the location of an attachment to a document. The format is the URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
values
- The value of a key-value pair that identifies the location of an attachment to a document. The format is
the URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.public AttachmentsSource withValues(String... values)
The value of a key-value pair that identifies the location of an attachment to a document. The format is 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 value of a key-value pair that identifies the location of an attachment to a document. The format is
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 value of a key-value pair that identifies the location of an attachment to a document. The format is the URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.
values
- The value of a key-value pair that identifies the location of an attachment to a document. The format is
the URL of the location of a document attachment, such as the URL of an Amazon S3 bucket.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.