Class DescribeCrossAccountAccessRoleResult
- java.lang.Object
-
- com.amazonaws.services.inspector.model.DescribeCrossAccountAccessRoleResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeCrossAccountAccessRoleResult extends Object implements Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeCrossAccountAccessRoleResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeCrossAccountAccessRoleResult
clone()
boolean
equals(Object obj)
Date
getRegisteredAt()
The date when the cross-account access role was registered.String
getRoleArn()
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.Boolean
getValid()
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.int
hashCode()
Boolean
isValid()
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.void
setRegisteredAt(Date registeredAt)
The date when the cross-account access role was registered.void
setRoleArn(String roleArn)
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.void
setValid(Boolean valid)
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeCrossAccountAccessRoleResult
withRegisteredAt(Date registeredAt)
The date when the cross-account access role was registered.DescribeCrossAccountAccessRoleResult
withRoleArn(String roleArn)
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.DescribeCrossAccountAccessRoleResult
withValid(Boolean valid)
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
-
-
-
Method Detail
-
setRoleArn
public void setRoleArn(String roleArn)
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
- Parameters:
roleArn
- The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
-
getRoleArn
public String getRoleArn()
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
- Returns:
- The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
-
withRoleArn
public DescribeCrossAccountAccessRoleResult withRoleArn(String roleArn)
The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.
- Parameters:
roleArn
- The ARN that specifies the IAM role that Amazon Inspector uses to access your AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValid
public void setValid(Boolean valid)
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
- Parameters:
valid
- A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
-
getValid
public Boolean getValid()
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
- Returns:
- A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
-
withValid
public DescribeCrossAccountAccessRoleResult withValid(Boolean valid)
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
- Parameters:
valid
- A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isValid
public Boolean isValid()
A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
- Returns:
- A Boolean value that specifies whether the IAM role has the necessary policies attached to enable Amazon Inspector to access your AWS account.
-
setRegisteredAt
public void setRegisteredAt(Date registeredAt)
The date when the cross-account access role was registered.
- Parameters:
registeredAt
- The date when the cross-account access role was registered.
-
getRegisteredAt
public Date getRegisteredAt()
The date when the cross-account access role was registered.
- Returns:
- The date when the cross-account access role was registered.
-
withRegisteredAt
public DescribeCrossAccountAccessRoleResult withRegisteredAt(Date registeredAt)
The date when the cross-account access role was registered.
- Parameters:
registeredAt
- The date when the cross-account access role was registered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeCrossAccountAccessRoleResult clone()
-
-