@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateProjectRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request structure used to request a project be created.
NOOP
Constructor and Description |
---|
CreateProjectRequest() |
Modifier and Type | Method and Description |
---|---|
CreateProjectRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
ByteBuffer |
getContents()
ZIP or YAML file which contains configuration settings to be used when creating the project.
|
String |
getName()
Name of the project.
|
String |
getRegion()
Default region where project resources should be created.
|
String |
getSnapshotId()
Unique identifier for an exported snapshot of project configuration.
|
int |
hashCode() |
void |
setContents(ByteBuffer contents)
ZIP or YAML file which contains configuration settings to be used when creating the project.
|
void |
setName(String name)
Name of the project.
|
void |
setRegion(String region)
Default region where project resources should be created.
|
void |
setSnapshotId(String snapshotId)
Unique identifier for an exported snapshot of project configuration.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateProjectRequest |
withContents(ByteBuffer contents)
ZIP or YAML file which contains configuration settings to be used when creating the project.
|
CreateProjectRequest |
withName(String name)
Name of the project.
|
CreateProjectRequest |
withRegion(String region)
Default region where project resources should be created.
|
CreateProjectRequest |
withSnapshotId(String snapshotId)
Unique identifier for an exported snapshot of project configuration.
|
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 setName(String name)
Name of the project.
name
- Name of the project.public String getName()
Name of the project.
public CreateProjectRequest withName(String name)
Name of the project.
name
- Name of the project.public void setRegion(String region)
Default region where project resources should be created.
region
- Default region where project resources should be created.public String getRegion()
Default region where project resources should be created.
public CreateProjectRequest withRegion(String region)
Default region where project resources should be created.
region
- Default region where project resources should be created.public void setContents(ByteBuffer contents)
ZIP or YAML file which contains configuration settings to be used when creating the project. This may be the contents of the file downloaded from the URL provided in an export project operation.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
contents
- ZIP or YAML file which contains configuration settings to be used when creating the project. This may be
the contents of the file downloaded from the URL provided in an export project operation.public ByteBuffer getContents()
ZIP or YAML file which contains configuration settings to be used when creating the project. This may be the contents of the file downloaded from the URL provided in an export project operation.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
public CreateProjectRequest withContents(ByteBuffer contents)
ZIP or YAML file which contains configuration settings to be used when creating the project. This may be the contents of the file downloaded from the URL provided in an export project operation.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
contents
- ZIP or YAML file which contains configuration settings to be used when creating the project. This may be
the contents of the file downloaded from the URL provided in an export project operation.public void setSnapshotId(String snapshotId)
Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included in the share URL when a project is exported.
snapshotId
- Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included
in the share URL when a project is exported.public String getSnapshotId()
Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included in the share URL when a project is exported.
public CreateProjectRequest withSnapshotId(String snapshotId)
Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included in the share URL when a project is exported.
snapshotId
- Unique identifier for an exported snapshot of project configuration. This snapshot identifier is included
in the share URL when a project is exported.public String toString()
toString
in class Object
Object.toString()
public CreateProjectRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.