@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PolicyGeneration extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the policy generation status and properties.
Constructor and Description |
---|
PolicyGeneration() |
Modifier and Type | Method and Description |
---|---|
PolicyGeneration |
clone() |
boolean |
equals(Object obj) |
Date |
getCompletedOn()
A timestamp of when the policy generation was completed.
|
String |
getJobId()
The
JobId that is returned by the StartPolicyGeneration operation. |
String |
getPrincipalArn()
The ARN of the IAM entity (user or role) for which you are generating a policy.
|
Date |
getStartedOn()
A timestamp of when the policy generation started.
|
String |
getStatus()
The status of the policy generation request.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCompletedOn(Date completedOn)
A timestamp of when the policy generation was completed.
|
void |
setJobId(String jobId)
The
JobId that is returned by the StartPolicyGeneration operation. |
void |
setPrincipalArn(String principalArn)
The ARN of the IAM entity (user or role) for which you are generating a policy.
|
void |
setStartedOn(Date startedOn)
A timestamp of when the policy generation started.
|
void |
setStatus(String status)
The status of the policy generation request.
|
String |
toString()
Returns a string representation of this object.
|
PolicyGeneration |
withCompletedOn(Date completedOn)
A timestamp of when the policy generation was completed.
|
PolicyGeneration |
withJobId(String jobId)
The
JobId that is returned by the StartPolicyGeneration operation. |
PolicyGeneration |
withPrincipalArn(String principalArn)
The ARN of the IAM entity (user or role) for which you are generating a policy.
|
PolicyGeneration |
withStartedOn(Date startedOn)
A timestamp of when the policy generation started.
|
PolicyGeneration |
withStatus(JobStatus status)
The status of the policy generation request.
|
PolicyGeneration |
withStatus(String status)
The status of the policy generation request.
|
public void setCompletedOn(Date completedOn)
A timestamp of when the policy generation was completed.
completedOn
- A timestamp of when the policy generation was completed.public Date getCompletedOn()
A timestamp of when the policy generation was completed.
public PolicyGeneration withCompletedOn(Date completedOn)
A timestamp of when the policy generation was completed.
completedOn
- A timestamp of when the policy generation was completed.public void setJobId(String jobId)
The JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used
with CancelPolicyGeneration
to cancel the policy generation request.
jobId
- The JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or
used with CancelPolicyGeneration
to cancel the policy generation request.public String getJobId()
The JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used
with CancelPolicyGeneration
to cancel the policy generation request.
JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or
used with CancelPolicyGeneration
to cancel the policy generation request.public PolicyGeneration withJobId(String jobId)
The JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or used
with CancelPolicyGeneration
to cancel the policy generation request.
jobId
- The JobId
that is returned by the StartPolicyGeneration
operation. The
JobId
can be used with GetGeneratedPolicy
to retrieve the generated policies or
used with CancelPolicyGeneration
to cancel the policy generation request.public void setPrincipalArn(String principalArn)
The ARN of the IAM entity (user or role) for which you are generating a policy.
principalArn
- The ARN of the IAM entity (user or role) for which you are generating a policy.public String getPrincipalArn()
The ARN of the IAM entity (user or role) for which you are generating a policy.
public PolicyGeneration withPrincipalArn(String principalArn)
The ARN of the IAM entity (user or role) for which you are generating a policy.
principalArn
- The ARN of the IAM entity (user or role) for which you are generating a policy.public void setStartedOn(Date startedOn)
A timestamp of when the policy generation started.
startedOn
- A timestamp of when the policy generation started.public Date getStartedOn()
A timestamp of when the policy generation started.
public PolicyGeneration withStartedOn(Date startedOn)
A timestamp of when the policy generation started.
startedOn
- A timestamp of when the policy generation started.public void setStatus(String status)
The status of the policy generation request.
status
- The status of the policy generation request.JobStatus
public String getStatus()
The status of the policy generation request.
JobStatus
public PolicyGeneration withStatus(String status)
The status of the policy generation request.
status
- The status of the policy generation request.JobStatus
public PolicyGeneration withStatus(JobStatus status)
The status of the policy generation request.
status
- The status of the policy generation request.JobStatus
public String toString()
toString
in class Object
Object.toString()
public PolicyGeneration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.