@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCollectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCollectionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCollectionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier to ensure idempotency of the request.
|
String |
getDescription()
Description of the collection.
|
String |
getName()
Name of the collection.
|
List<Tag> |
getTags()
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
|
String |
getType()
The type of collection.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
|
void |
setDescription(String description)
Description of the collection.
|
void |
setName(String name)
Name of the collection.
|
void |
setTags(Collection<Tag> tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
|
void |
setType(String type)
The type of collection.
|
String |
toString()
Returns a string representation of this object.
|
CreateCollectionRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
|
CreateCollectionRequest |
withDescription(String description)
Description of the collection.
|
CreateCollectionRequest |
withName(String name)
Name of the collection.
|
CreateCollectionRequest |
withTags(Collection<Tag> tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
|
CreateCollectionRequest |
withTags(Tag... tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
|
CreateCollectionRequest |
withType(CollectionType type)
The type of collection.
|
CreateCollectionRequest |
withType(String type)
The type of collection.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.public String getClientToken()
Unique, case-sensitive identifier to ensure idempotency of the request.
public CreateCollectionRequest withClientToken(String clientToken)
Unique, case-sensitive identifier to ensure idempotency of the request.
clientToken
- Unique, case-sensitive identifier to ensure idempotency of the request.public void setDescription(String description)
Description of the collection.
description
- Description of the collection.public String getDescription()
Description of the collection.
public CreateCollectionRequest withDescription(String description)
Description of the collection.
description
- Description of the collection.public void setName(String name)
Name of the collection.
name
- Name of the collection.public String getName()
Name of the collection.
public CreateCollectionRequest withName(String name)
Name of the collection.
name
- Name of the collection.public List<Tag> getTags()
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
public void setTags(Collection<Tag> tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.public CreateCollectionRequest withTags(Tag... tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.public CreateCollectionRequest withTags(Collection<Tag> tags)
An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.
tags
- An arbitrary set of tags (key–value pairs) to associate with the OpenSearch Serverless collection.public void setType(String type)
The type of collection.
type
- The type of collection.CollectionType
public String getType()
The type of collection.
CollectionType
public CreateCollectionRequest withType(String type)
The type of collection.
type
- The type of collection.CollectionType
public CreateCollectionRequest withType(CollectionType type)
The type of collection.
type
- The type of collection.CollectionType
public String toString()
toString
in class Object
Object.toString()
public CreateCollectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()