@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LifecyclePolicyDetailExclusionRulesAmis extends Object implements Serializable, Cloneable, StructuredPojo
Defines criteria for AMIs that are excluded from lifecycle actions.
Constructor and Description |
---|
LifecyclePolicyDetailExclusionRulesAmis() |
Modifier and Type | Method and Description |
---|---|
LifecyclePolicyDetailExclusionRulesAmis |
addTagMapEntry(String key,
String value)
Add a single TagMap entry
|
LifecyclePolicyDetailExclusionRulesAmis |
clearTagMapEntries()
Removes all the entries added into TagMap.
|
LifecyclePolicyDetailExclusionRulesAmis |
clone() |
boolean |
equals(Object obj) |
Boolean |
getIsPublic()
Configures whether public AMIs are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmisLastLaunched |
getLastLaunched()
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
|
List<String> |
getRegions()
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
|
List<String> |
getSharedAccounts()
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
|
Map<String,String> |
getTagMap()
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
|
int |
hashCode() |
Boolean |
isPublic()
Configures whether public AMIs are excluded from the lifecycle action.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIsPublic(Boolean isPublic)
Configures whether public AMIs are excluded from the lifecycle action.
|
void |
setLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched)
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
|
void |
setRegions(Collection<String> regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
|
void |
setSharedAccounts(Collection<String> sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
|
void |
setTagMap(Map<String,String> tagMap)
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
|
String |
toString()
Returns a string representation of this object.
|
LifecyclePolicyDetailExclusionRulesAmis |
withIsPublic(Boolean isPublic)
Configures whether public AMIs are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmis |
withLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched)
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
|
LifecyclePolicyDetailExclusionRulesAmis |
withRegions(Collection<String> regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmis |
withRegions(String... regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmis |
withSharedAccounts(Collection<String> sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmis |
withSharedAccounts(String... sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
|
LifecyclePolicyDetailExclusionRulesAmis |
withTagMap(Map<String,String> tagMap)
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
|
public LifecyclePolicyDetailExclusionRulesAmis()
public void setIsPublic(Boolean isPublic)
Configures whether public AMIs are excluded from the lifecycle action.
isPublic
- Configures whether public AMIs are excluded from the lifecycle action.public Boolean getIsPublic()
Configures whether public AMIs are excluded from the lifecycle action.
public LifecyclePolicyDetailExclusionRulesAmis withIsPublic(Boolean isPublic)
Configures whether public AMIs are excluded from the lifecycle action.
isPublic
- Configures whether public AMIs are excluded from the lifecycle action.public Boolean isPublic()
Configures whether public AMIs are excluded from the lifecycle action.
public List<String> getRegions()
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
public void setRegions(Collection<String> regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
regions
- Configures Amazon Web Services Regions that are excluded from the lifecycle action.public LifecyclePolicyDetailExclusionRulesAmis withRegions(String... regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
NOTE: This method appends the values to the existing list (if any). Use
setRegions(java.util.Collection)
or withRegions(java.util.Collection)
if you want to override
the existing values.
regions
- Configures Amazon Web Services Regions that are excluded from the lifecycle action.public LifecyclePolicyDetailExclusionRulesAmis withRegions(Collection<String> regions)
Configures Amazon Web Services Regions that are excluded from the lifecycle action.
regions
- Configures Amazon Web Services Regions that are excluded from the lifecycle action.public List<String> getSharedAccounts()
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
public void setSharedAccounts(Collection<String> sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
sharedAccounts
- Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.public LifecyclePolicyDetailExclusionRulesAmis withSharedAccounts(String... sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
NOTE: This method appends the values to the existing list (if any). Use
setSharedAccounts(java.util.Collection)
or withSharedAccounts(java.util.Collection)
if you want
to override the existing values.
sharedAccounts
- Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.public LifecyclePolicyDetailExclusionRulesAmis withSharedAccounts(Collection<String> sharedAccounts)
Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.
sharedAccounts
- Specifies Amazon Web Services accounts whose resources are excluded from the lifecycle action.public void setLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched)
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
lastLaunched
- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle
actions.public LifecyclePolicyDetailExclusionRulesAmisLastLaunched getLastLaunched()
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
public LifecyclePolicyDetailExclusionRulesAmis withLastLaunched(LifecyclePolicyDetailExclusionRulesAmisLastLaunched lastLaunched)
Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle actions.
lastLaunched
- Specifies configuration details for Image Builder to exclude the most recent resources from lifecycle
actions.public Map<String,String> getTagMap()
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
public void setTagMap(Map<String,String> tagMap)
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
tagMap
- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.public LifecyclePolicyDetailExclusionRulesAmis withTagMap(Map<String,String> tagMap)
Lists tags that should be excluded from lifecycle actions for the AMIs that have them.
tagMap
- Lists tags that should be excluded from lifecycle actions for the AMIs that have them.public LifecyclePolicyDetailExclusionRulesAmis addTagMapEntry(String key, String value)
public LifecyclePolicyDetailExclusionRulesAmis clearTagMapEntries()
public String toString()
toString
in class Object
Object.toString()
public LifecyclePolicyDetailExclusionRulesAmis clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.