@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ScpActionDefinition extends Object implements Serializable, Cloneable, StructuredPojo
The service control policies (SCP) action definition details.
Constructor and Description |
---|
ScpActionDefinition() |
Modifier and Type | Method and Description |
---|---|
ScpActionDefinition |
clone() |
boolean |
equals(Object obj) |
String |
getPolicyId()
The policy ID attached.
|
List<String> |
getTargetIds()
A list of target IDs.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPolicyId(String policyId)
The policy ID attached.
|
void |
setTargetIds(Collection<String> targetIds)
A list of target IDs.
|
String |
toString()
Returns a string representation of this object.
|
ScpActionDefinition |
withPolicyId(String policyId)
The policy ID attached.
|
ScpActionDefinition |
withTargetIds(Collection<String> targetIds)
A list of target IDs.
|
ScpActionDefinition |
withTargetIds(String... targetIds)
A list of target IDs.
|
public void setPolicyId(String policyId)
The policy ID attached.
policyId
- The policy ID attached.public String getPolicyId()
The policy ID attached.
public ScpActionDefinition withPolicyId(String policyId)
The policy ID attached.
policyId
- The policy ID attached.public List<String> getTargetIds()
A list of target IDs.
public void setTargetIds(Collection<String> targetIds)
A list of target IDs.
targetIds
- A list of target IDs.public ScpActionDefinition withTargetIds(String... targetIds)
A list of target IDs.
NOTE: This method appends the values to the existing list (if any). Use
setTargetIds(java.util.Collection)
or withTargetIds(java.util.Collection)
if you want to
override the existing values.
targetIds
- A list of target IDs.public ScpActionDefinition withTargetIds(Collection<String> targetIds)
A list of target IDs.
targetIds
- A list of target IDs.public String toString()
toString
in class Object
Object.toString()
public ScpActionDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.