@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScannedResource extends Object implements Serializable, Cloneable
A scanned resource returned by ListResourceScanResources
or
ListResourceScanRelatedResources
.
Constructor and Description |
---|
ScannedResource() |
Modifier and Type | Method and Description |
---|---|
ScannedResource |
addResourceIdentifierEntry(String key,
String value)
Add a single ResourceIdentifier entry
|
ScannedResource |
clearResourceIdentifierEntries()
Removes all the entries added into ResourceIdentifier.
|
ScannedResource |
clone() |
boolean |
equals(Object obj) |
Boolean |
getManagedByStack()
If
true , the resource is managed by a CloudFormation stack. |
Map<String,String> |
getResourceIdentifier()
A list of up to 256 key-value pairs that identifies for the scanned resource.
|
String |
getResourceType()
The type of the resource, such as
AWS::DynamoDB::Table . |
int |
hashCode() |
Boolean |
isManagedByStack()
If
true , the resource is managed by a CloudFormation stack. |
void |
setManagedByStack(Boolean managedByStack)
If
true , the resource is managed by a CloudFormation stack. |
void |
setResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies for the scanned resource.
|
void |
setResourceType(String resourceType)
The type of the resource, such as
AWS::DynamoDB::Table . |
String |
toString()
Returns a string representation of this object.
|
ScannedResource |
withManagedByStack(Boolean managedByStack)
If
true , the resource is managed by a CloudFormation stack. |
ScannedResource |
withResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies for the scanned resource.
|
ScannedResource |
withResourceType(String resourceType)
The type of the resource, such as
AWS::DynamoDB::Table . |
public void setResourceType(String resourceType)
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see
Resource type support In the CloudFormation User Guide
resourceType
- The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources,
see Resource type support In the CloudFormation User Guidepublic String getResourceType()
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see
Resource type support In the CloudFormation User Guide
AWS::DynamoDB::Table
. For the list of supported resources,
see Resource type support In the CloudFormation User Guidepublic ScannedResource withResourceType(String resourceType)
The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources, see
Resource type support In the CloudFormation User Guide
resourceType
- The type of the resource, such as AWS::DynamoDB::Table
. For the list of supported resources,
see Resource type support In the CloudFormation User Guidepublic Map<String,String> getResourceIdentifier()
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public void setResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
resourceIdentifier
- A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one
of the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public ScannedResource withResourceIdentifier(Map<String,String> resourceIdentifier)
A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one of the
primary identifiers for the resource. (Primary identifiers are specified in the primaryIdentifier
list in the resource schema.) The value is the value of that primary identifier. For example, for a
AWS::DynamoDB::Table
resource, the primary identifiers is TableName
so the key-value
pair could be "TableName": "MyDDBTable"
. For more information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension development.
resourceIdentifier
- A list of up to 256 key-value pairs that identifies for the scanned resource. The key is the name of one
of the primary identifiers for the resource. (Primary identifiers are specified in the
primaryIdentifier
list in the resource schema.) The value is the value of that primary
identifier. For example, for a AWS::DynamoDB::Table
resource, the primary identifiers is
TableName
so the key-value pair could be "TableName": "MyDDBTable"
. For more
information, see primaryIdentifier in the CloudFormation Command Line Interface User guide for extension
development.public ScannedResource addResourceIdentifierEntry(String key, String value)
public ScannedResource clearResourceIdentifierEntries()
public void setManagedByStack(Boolean managedByStack)
If true
, the resource is managed by a CloudFormation stack.
managedByStack
- If true
, the resource is managed by a CloudFormation stack.public Boolean getManagedByStack()
If true
, the resource is managed by a CloudFormation stack.
true
, the resource is managed by a CloudFormation stack.public ScannedResource withManagedByStack(Boolean managedByStack)
If true
, the resource is managed by a CloudFormation stack.
managedByStack
- If true
, the resource is managed by a CloudFormation stack.public Boolean isManagedByStack()
If true
, the resource is managed by a CloudFormation stack.
true
, the resource is managed by a CloudFormation stack.public String toString()
toString
in class Object
Object.toString()
public ScannedResource clone()