@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourceToImport extends Object implements Serializable, Cloneable
Describes the target resource of an import operation.
Constructor and Description |
---|
ResourceToImport() |
Modifier and Type | Method and Description |
---|---|
ResourceToImport |
addResourceIdentifierEntry(String key,
String value)
Add a single ResourceIdentifier entry
|
ResourceToImport |
clearResourceIdentifierEntries()
Removes all the entries added into ResourceIdentifier.
|
ResourceToImport |
clone() |
boolean |
equals(Object obj) |
String |
getLogicalResourceId()
The logical ID of the target resource as specified in the template.
|
Map<String,String> |
getResourceIdentifier()
A key-value pair that identifies the target resource.
|
String |
getResourceType()
The type of resource to import into your stack, such as
AWS::S3::Bucket . |
int |
hashCode() |
void |
setLogicalResourceId(String logicalResourceId)
The logical ID of the target resource as specified in the template.
|
void |
setResourceIdentifier(Map<String,String> resourceIdentifier)
A key-value pair that identifies the target resource.
|
void |
setResourceType(String resourceType)
The type of resource to import into your stack, such as
AWS::S3::Bucket . |
String |
toString()
Returns a string representation of this object.
|
ResourceToImport |
withLogicalResourceId(String logicalResourceId)
The logical ID of the target resource as specified in the template.
|
ResourceToImport |
withResourceIdentifier(Map<String,String> resourceIdentifier)
A key-value pair that identifies the target resource.
|
ResourceToImport |
withResourceType(String resourceType)
The type of resource to import into your stack, such as
AWS::S3::Bucket . |
public void setResourceType(String resourceType)
The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of supported
resource types, see Resources that support import operations in the CloudFormation User Guide.
resourceType
- The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of
supported resource types, see Resources that support import operations in the CloudFormation User Guide.public String getResourceType()
The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of supported
resource types, see Resources that support import operations in the CloudFormation User Guide.
AWS::S3::Bucket
. For a list of
supported resource types, see Resources that support import operations in the CloudFormation User Guide.public ResourceToImport withResourceType(String resourceType)
The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of supported
resource types, see Resources that support import operations in the CloudFormation User Guide.
resourceType
- The type of resource to import into your stack, such as AWS::S3::Bucket
. For a list of
supported resource types, see Resources that support import operations in the CloudFormation User Guide.public void setLogicalResourceId(String logicalResourceId)
The logical ID of the target resource as specified in the template.
logicalResourceId
- The logical ID of the target resource as specified in the template.public String getLogicalResourceId()
The logical ID of the target resource as specified in the template.
public ResourceToImport withLogicalResourceId(String logicalResourceId)
The logical ID of the target resource as specified in the template.
logicalResourceId
- The logical ID of the target resource as specified in the template.public Map<String,String> getResourceIdentifier()
A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property value
(for example, MyS3Bucket
).
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property
value (for example, MyS3Bucket
).public void setResourceIdentifier(Map<String,String> resourceIdentifier)
A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property value
(for example, MyS3Bucket
).
resourceIdentifier
- A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property
value (for example, MyS3Bucket
).public ResourceToImport withResourceIdentifier(Map<String,String> resourceIdentifier)
A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property value
(for example, MyS3Bucket
).
resourceIdentifier
- A key-value pair that identifies the target resource. The key is an identifier property (for example,
BucketName
for AWS::S3::Bucket
resources) and the value is the actual property
value (for example, MyS3Bucket
).public ResourceToImport addResourceIdentifierEntry(String key, String value)
public ResourceToImport clearResourceIdentifierEntries()
public String toString()
toString
in class Object
Object.toString()
public ResourceToImport clone()