@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ControlScope extends Object implements Serializable, Cloneable, StructuredPojo
A framework consists of one or more controls. Each control has its own control scope. The control scope defines what the control will evaluate. Three examples of control scopes are: a specific backup plan, all backup plans with a specific tag, or all backup plans.
To set a control scope that includes all of a particular resource, leave the ControlScope
empty or do
not pass it when calling CreateFramework
.
Constructor and Description |
---|
ControlScope() |
Modifier and Type | Method and Description |
---|---|
ControlScope |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
ControlScope |
clearTagsEntries()
Removes all the entries added into Tags.
|
ControlScope |
clone() |
boolean |
equals(Object obj) |
List<String> |
getComplianceResourceIds()
The ID of the only Amazon Web Services resource that you want your control scope to contain.
|
List<String> |
getComplianceResourceTypes()
Describes whether the control scope includes one or more types of resources, such as
EFS or
RDS . |
Map<String,String> |
getTags()
Describes whether the control scope includes resources with one or more tags.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComplianceResourceIds(Collection<String> complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
|
void |
setComplianceResourceTypes(Collection<String> complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as
EFS or
RDS . |
void |
setTags(Map<String,String> tags)
Describes whether the control scope includes resources with one or more tags.
|
String |
toString()
Returns a string representation of this object.
|
ControlScope |
withComplianceResourceIds(Collection<String> complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
|
ControlScope |
withComplianceResourceIds(String... complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
|
ControlScope |
withComplianceResourceTypes(Collection<String> complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as
EFS or
RDS . |
ControlScope |
withComplianceResourceTypes(String... complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as
EFS or
RDS . |
ControlScope |
withTags(Map<String,String> tags)
Describes whether the control scope includes resources with one or more tags.
|
public List<String> getComplianceResourceIds()
The ID of the only Amazon Web Services resource that you want your control scope to contain.
public void setComplianceResourceIds(Collection<String> complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
complianceResourceIds
- The ID of the only Amazon Web Services resource that you want your control scope to contain.public ControlScope withComplianceResourceIds(String... complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
NOTE: This method appends the values to the existing list (if any). Use
setComplianceResourceIds(java.util.Collection)
or
withComplianceResourceIds(java.util.Collection)
if you want to override the existing values.
complianceResourceIds
- The ID of the only Amazon Web Services resource that you want your control scope to contain.public ControlScope withComplianceResourceIds(Collection<String> complianceResourceIds)
The ID of the only Amazon Web Services resource that you want your control scope to contain.
complianceResourceIds
- The ID of the only Amazon Web Services resource that you want your control scope to contain.public List<String> getComplianceResourceTypes()
Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.
EFS
or
RDS
.public void setComplianceResourceTypes(Collection<String> complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.
complianceResourceTypes
- Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.public ControlScope withComplianceResourceTypes(String... complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.
NOTE: This method appends the values to the existing list (if any). Use
setComplianceResourceTypes(java.util.Collection)
or
withComplianceResourceTypes(java.util.Collection)
if you want to override the existing values.
complianceResourceTypes
- Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.public ControlScope withComplianceResourceTypes(Collection<String> complianceResourceTypes)
Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.
complianceResourceTypes
- Describes whether the control scope includes one or more types of resources, such as EFS
or
RDS
.public Map<String,String> getTags()
Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
public void setTags(Map<String,String> tags)
Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
tags
- Describes whether the control scope includes resources with one or more tags. Each tag is a key-value
pair.public ControlScope withTags(Map<String,String> tags)
Describes whether the control scope includes resources with one or more tags. Each tag is a key-value pair.
tags
- Describes whether the control scope includes resources with one or more tags. Each tag is a key-value
pair.public ControlScope addTagsEntry(String key, String value)
public ControlScope clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public ControlScope clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.