@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsIamAccessKeyDetails extends Object implements Serializable, Cloneable, StructuredPojo
IAM access key details related to a finding.
Constructor and Description |
---|
AwsIamAccessKeyDetails() |
Modifier and Type | Method and Description |
---|---|
AwsIamAccessKeyDetails |
clone() |
boolean |
equals(Object obj) |
String |
getAccessKeyId()
The identifier of the access key.
|
String |
getAccountId()
The Amazon Web Services account ID of the account for the key.
|
String |
getCreatedAt()
Indicates when the IAM access key was created.
|
String |
getPrincipalId()
The ID of the principal associated with an access key.
|
String |
getPrincipalName()
The name of the principal.
|
String |
getPrincipalType()
The type of principal associated with an access key.
|
AwsIamAccessKeySessionContext |
getSessionContext()
Information about the session that the key was used for.
|
String |
getStatus()
The status of the IAM access key related to a finding.
|
String |
getUserName()
Deprecated.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessKeyId(String accessKeyId)
The identifier of the access key.
|
void |
setAccountId(String accountId)
The Amazon Web Services account ID of the account for the key.
|
void |
setCreatedAt(String createdAt)
Indicates when the IAM access key was created.
|
void |
setPrincipalId(String principalId)
The ID of the principal associated with an access key.
|
void |
setPrincipalName(String principalName)
The name of the principal.
|
void |
setPrincipalType(String principalType)
The type of principal associated with an access key.
|
void |
setSessionContext(AwsIamAccessKeySessionContext sessionContext)
Information about the session that the key was used for.
|
void |
setStatus(String status)
The status of the IAM access key related to a finding.
|
void |
setUserName(String userName)
Deprecated.
|
String |
toString()
Returns a string representation of this object.
|
AwsIamAccessKeyDetails |
withAccessKeyId(String accessKeyId)
The identifier of the access key.
|
AwsIamAccessKeyDetails |
withAccountId(String accountId)
The Amazon Web Services account ID of the account for the key.
|
AwsIamAccessKeyDetails |
withCreatedAt(String createdAt)
Indicates when the IAM access key was created.
|
AwsIamAccessKeyDetails |
withPrincipalId(String principalId)
The ID of the principal associated with an access key.
|
AwsIamAccessKeyDetails |
withPrincipalName(String principalName)
The name of the principal.
|
AwsIamAccessKeyDetails |
withPrincipalType(String principalType)
The type of principal associated with an access key.
|
AwsIamAccessKeyDetails |
withSessionContext(AwsIamAccessKeySessionContext sessionContext)
Information about the session that the key was used for.
|
AwsIamAccessKeyDetails |
withStatus(AwsIamAccessKeyStatus status)
The status of the IAM access key related to a finding.
|
AwsIamAccessKeyDetails |
withStatus(String status)
The status of the IAM access key related to a finding.
|
AwsIamAccessKeyDetails |
withUserName(String userName)
Deprecated.
|
@Deprecated public void setUserName(String userName)
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because
access keys can also be assigned to principals that are not IAM users.
userName
- The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter
because access keys can also be assigned to principals that are not IAM users.
@Deprecated public String getUserName()
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because
access keys can also be assigned to principals that are not IAM users.
The UserName
parameter has been replaced with the PrincipalName
parameter
because access keys can also be assigned to principals that are not IAM users.
@Deprecated public AwsIamAccessKeyDetails withUserName(String userName)
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because
access keys can also be assigned to principals that are not IAM users.
userName
- The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter
because access keys can also be assigned to principals that are not IAM users.
public void setStatus(String status)
The status of the IAM access key related to a finding.
status
- The status of the IAM access key related to a finding.AwsIamAccessKeyStatus
public String getStatus()
The status of the IAM access key related to a finding.
AwsIamAccessKeyStatus
public AwsIamAccessKeyDetails withStatus(String status)
The status of the IAM access key related to a finding.
status
- The status of the IAM access key related to a finding.AwsIamAccessKeyStatus
public AwsIamAccessKeyDetails withStatus(AwsIamAccessKeyStatus status)
The status of the IAM access key related to a finding.
status
- The status of the IAM access key related to a finding.AwsIamAccessKeyStatus
public void setCreatedAt(String createdAt)
Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createdAt
- Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getCreatedAt()
Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsIamAccessKeyDetails withCreatedAt(String createdAt)
Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createdAt
- Indicates when the IAM access key was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public void setPrincipalId(String principalId)
The ID of the principal associated with an access key.
principalId
- The ID of the principal associated with an access key.public String getPrincipalId()
The ID of the principal associated with an access key.
public AwsIamAccessKeyDetails withPrincipalId(String principalId)
The ID of the principal associated with an access key.
principalId
- The ID of the principal associated with an access key.public void setPrincipalType(String principalType)
The type of principal associated with an access key.
principalType
- The type of principal associated with an access key.public String getPrincipalType()
The type of principal associated with an access key.
public AwsIamAccessKeyDetails withPrincipalType(String principalType)
The type of principal associated with an access key.
principalType
- The type of principal associated with an access key.public void setPrincipalName(String principalName)
The name of the principal.
principalName
- The name of the principal.public String getPrincipalName()
The name of the principal.
public AwsIamAccessKeyDetails withPrincipalName(String principalName)
The name of the principal.
principalName
- The name of the principal.public void setAccountId(String accountId)
The Amazon Web Services account ID of the account for the key.
accountId
- The Amazon Web Services account ID of the account for the key.public String getAccountId()
The Amazon Web Services account ID of the account for the key.
public AwsIamAccessKeyDetails withAccountId(String accountId)
The Amazon Web Services account ID of the account for the key.
accountId
- The Amazon Web Services account ID of the account for the key.public void setAccessKeyId(String accessKeyId)
The identifier of the access key.
accessKeyId
- The identifier of the access key.public String getAccessKeyId()
The identifier of the access key.
public AwsIamAccessKeyDetails withAccessKeyId(String accessKeyId)
The identifier of the access key.
accessKeyId
- The identifier of the access key.public void setSessionContext(AwsIamAccessKeySessionContext sessionContext)
Information about the session that the key was used for.
sessionContext
- Information about the session that the key was used for.public AwsIamAccessKeySessionContext getSessionContext()
Information about the session that the key was used for.
public AwsIamAccessKeyDetails withSessionContext(AwsIamAccessKeySessionContext sessionContext)
Information about the session that the key was used for.
sessionContext
- Information about the session that the key was used for.public String toString()
toString
in class Object
Object.toString()
public AwsIamAccessKeyDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.