@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateApiKeyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateApiKeyRequest() |
Modifier and Type | Method and Description |
---|---|
CreateApiKeyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getApiId()
The ID for your GraphQL API.
|
String |
getDescription()
A description of the purpose of the API key.
|
Long |
getExpires()
From the creation time, the time after which the API key expires.
|
int |
hashCode() |
void |
setApiId(String apiId)
The ID for your GraphQL API.
|
void |
setDescription(String description)
A description of the purpose of the API key.
|
void |
setExpires(Long expires)
From the creation time, the time after which the API key expires.
|
String |
toString()
Returns a string representation of this object.
|
CreateApiKeyRequest |
withApiId(String apiId)
The ID for your GraphQL API.
|
CreateApiKeyRequest |
withDescription(String description)
A description of the purpose of the API key.
|
CreateApiKeyRequest |
withExpires(Long expires)
From the creation time, the time after which the API key expires.
|
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 setApiId(String apiId)
The ID for your GraphQL API.
apiId
- The ID for your GraphQL API.public String getApiId()
The ID for your GraphQL API.
public CreateApiKeyRequest withApiId(String apiId)
The ID for your GraphQL API.
apiId
- The ID for your GraphQL API.public void setDescription(String description)
A description of the purpose of the API key.
description
- A description of the purpose of the API key.public String getDescription()
A description of the purpose of the API key.
public CreateApiKeyRequest withDescription(String description)
A description of the purpose of the API key.
description
- A description of the purpose of the API key.public void setExpires(Long expires)
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
expires
- From the creation time, the time after which the API key expires. The date is represented as seconds since
the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation
time. For more information, see .public Long getExpires()
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
public CreateApiKeyRequest withExpires(Long expires)
From the creation time, the time after which the API key expires. The date is represented as seconds since the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation time. For more information, see .
expires
- From the creation time, the time after which the API key expires. The date is represented as seconds since
the epoch, rounded down to the nearest hour. The default value for this parameter is 7 days from creation
time. For more information, see .public String toString()
toString
in class Object
Object.toString()
public CreateApiKeyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()