@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPolicyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetPolicyResult() |
Modifier and Type | Method and Description |
---|---|
GetPolicyResult |
clone() |
boolean |
equals(Object obj) |
Date |
getCreatedDate()
The date and time that the policy was originally created.
|
PolicyDefinitionDetail |
getDefinition()
The definition of the requested policy.
|
Date |
getLastUpdatedDate()
The date and time that the policy was last updated.
|
String |
getPolicyId()
The unique ID of the policy that you want information about.
|
String |
getPolicyStoreId()
The ID of the policy store that contains the policy that you want information about.
|
String |
getPolicyType()
The type of the policy.
|
EntityIdentifier |
getPrincipal()
The principal specified in the policy's scope.
|
EntityIdentifier |
getResource()
The resource specified in the policy's scope.
|
int |
hashCode() |
void |
setCreatedDate(Date createdDate)
The date and time that the policy was originally created.
|
void |
setDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
|
void |
setLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
|
void |
setPolicyId(String policyId)
The unique ID of the policy that you want information about.
|
void |
setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
|
void |
setPolicyType(String policyType)
The type of the policy.
|
void |
setPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope.
|
void |
setResource(EntityIdentifier resource)
The resource specified in the policy's scope.
|
String |
toString()
Returns a string representation of this object.
|
GetPolicyResult |
withCreatedDate(Date createdDate)
The date and time that the policy was originally created.
|
GetPolicyResult |
withDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
|
GetPolicyResult |
withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
|
GetPolicyResult |
withPolicyId(String policyId)
The unique ID of the policy that you want information about.
|
GetPolicyResult |
withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
|
GetPolicyResult |
withPolicyType(PolicyType policyType)
The type of the policy.
|
GetPolicyResult |
withPolicyType(String policyType)
The type of the policy.
|
GetPolicyResult |
withPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope.
|
GetPolicyResult |
withResource(EntityIdentifier resource)
The resource specified in the policy's scope.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
policyStoreId
- The ID of the policy store that contains the policy that you want information about.public String getPolicyStoreId()
The ID of the policy store that contains the policy that you want information about.
public GetPolicyResult withPolicyStoreId(String policyStoreId)
The ID of the policy store that contains the policy that you want information about.
policyStoreId
- The ID of the policy store that contains the policy that you want information about.public void setPolicyId(String policyId)
The unique ID of the policy that you want information about.
policyId
- The unique ID of the policy that you want information about.public String getPolicyId()
The unique ID of the policy that you want information about.
public GetPolicyResult withPolicyId(String policyId)
The unique ID of the policy that you want information about.
policyId
- The unique ID of the policy that you want information about.public void setPolicyType(String policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public String getPolicyType()
The type of the policy.
PolicyType
public GetPolicyResult withPolicyType(String policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public GetPolicyResult withPolicyType(PolicyType policyType)
The type of the policy.
policyType
- The type of the policy.PolicyType
public void setPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
principal
- The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.public EntityIdentifier getPrincipal()
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
Principal
isn't present in the policy content.public GetPolicyResult withPrincipal(EntityIdentifier principal)
The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.
principal
- The principal specified in the policy's scope. This element isn't included in the response when
Principal
isn't present in the policy content.public void setResource(EntityIdentifier resource)
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
resource
- The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.public EntityIdentifier getResource()
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
Resource
isn't present in the policy content.public GetPolicyResult withResource(EntityIdentifier resource)
The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.
resource
- The resource specified in the policy's scope. This element isn't included in the response when
Resource
isn't present in the policy content.public void setDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
definition
- The definition of the requested policy.public PolicyDefinitionDetail getDefinition()
The definition of the requested policy.
public GetPolicyResult withDefinition(PolicyDefinitionDetail definition)
The definition of the requested policy.
definition
- The definition of the requested policy.public void setCreatedDate(Date createdDate)
The date and time that the policy was originally created.
createdDate
- The date and time that the policy was originally created.public Date getCreatedDate()
The date and time that the policy was originally created.
public GetPolicyResult withCreatedDate(Date createdDate)
The date and time that the policy was originally created.
createdDate
- The date and time that the policy was originally created.public void setLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
lastUpdatedDate
- The date and time that the policy was last updated.public Date getLastUpdatedDate()
The date and time that the policy was last updated.
public GetPolicyResult withLastUpdatedDate(Date lastUpdatedDate)
The date and time that the policy was last updated.
lastUpdatedDate
- The date and time that the policy was last updated.public String toString()
toString
in class Object
Object.toString()
public GetPolicyResult clone()