@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Resource extends Object implements Serializable, Cloneable, StructuredPojo
The resource contains a ResourceArn
and the ResourceType
.
Constructor and Description |
---|
Resource() |
Modifier and Type | Method and Description |
---|---|
Resource |
clone() |
boolean |
equals(Object obj) |
String |
getResourceArn()
The Amazon Resource Name (ARN) of the source resource.
|
String |
getResourceType()
The resource type.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the source resource.
|
void |
setResourceType(String resourceType)
The resource type.
|
String |
toString()
Returns a string representation of this object.
|
Resource |
withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the source resource.
|
Resource |
withResourceType(String resourceType)
The resource type.
|
public void setResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the source resource.
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
resourceArn
- The Amazon Resource Name (ARN) of the source resource.
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
public String getResourceArn()
The Amazon Resource Name (ARN) of the source resource.
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
public Resource withResourceArn(String resourceArn)
The Amazon Resource Name (ARN) of the source resource.
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
resourceArn
- The Amazon Resource Name (ARN) of the source resource.
Example of ResourceArn
: "
arn:aws:ec2:us-east-1:111111111111:instance/i-abcdefgh987654321
"
public void setResourceType(String resourceType)
The resource type.
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
resourceType
- The resource type.
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
public String getResourceType()
The resource type.
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
public Resource withResourceType(String resourceType)
The resource type.
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
resourceType
- The resource type.
Example of ResourceType
: "AWS::SystemsManagerSAP::Component
" or "
AWS::EC2::Instance
".
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.