@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ServiceNameAndResourceType extends Object implements Serializable, Cloneable, StructuredPojo
Information about a shareable resource type and the Amazon Web Services service to which resources of that type belong.
Constructor and Description |
---|
ServiceNameAndResourceType() |
Modifier and Type | Method and Description |
---|---|
ServiceNameAndResourceType |
clone() |
boolean |
equals(Object obj) |
String |
getResourceRegionScope()
Specifies the scope of visibility of resources of this type:
|
String |
getResourceType()
The type of the resource.
|
String |
getServiceName()
The name of the Amazon Web Services service to which resources of this type belong.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of resources of this type:
|
void |
setResourceType(String resourceType)
The type of the resource.
|
void |
setServiceName(String serviceName)
The name of the Amazon Web Services service to which resources of this type belong.
|
String |
toString()
Returns a string representation of this object.
|
ServiceNameAndResourceType |
withResourceRegionScope(ResourceRegionScope resourceRegionScope)
Specifies the scope of visibility of resources of this type:
|
ServiceNameAndResourceType |
withResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of resources of this type:
|
ServiceNameAndResourceType |
withResourceType(String resourceType)
The type of the resource.
|
ServiceNameAndResourceType |
withServiceName(String serviceName)
The name of the Amazon Web Services service to which resources of this type belong.
|
public void setResourceType(String resourceType)
The type of the resource. This takes the form of: service-code
:resource-code
, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet
.
resourceType
- The type of the resource. This takes the form of: service-code
:resource-code
,
and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet
.public String getResourceType()
The type of the resource. This takes the form of: service-code
:resource-code
, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet
.
service-code
:resource-code
,
and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet
.public ServiceNameAndResourceType withResourceType(String resourceType)
The type of the resource. This takes the form of: service-code
:resource-code
, and is
case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string ec2:subnet
.
resourceType
- The type of the resource. This takes the form of: service-code
:resource-code
,
and is case-insensitive. For example, an Amazon EC2 Subnet would be represented by the string
ec2:subnet
.public void setServiceName(String serviceName)
The name of the Amazon Web Services service to which resources of this type belong.
serviceName
- The name of the Amazon Web Services service to which resources of this type belong.public String getServiceName()
The name of the Amazon Web Services service to which resources of this type belong.
public ServiceNameAndResourceType withServiceName(String serviceName)
The name of the Amazon Web Services service to which resources of this type belong.
serviceName
- The name of the Amazon Web Services service to which resources of this type belong.public void setResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope
- Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScope
public String getResourceRegionScope()
Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScope
public ServiceNameAndResourceType withResourceRegionScope(String resourceRegionScope)
Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope
- Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScope
public ServiceNameAndResourceType withResourceRegionScope(ResourceRegionScope resourceRegionScope)
Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
resourceRegionScope
- Specifies the scope of visibility of resources of this type:
REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
GLOBAL – The resource can be accessed from any Amazon Web Services Region.
ResourceRegionScope
public String toString()
toString
in class Object
Object.toString()
public ServiceNameAndResourceType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.