/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.identitymanagement.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* Contains information about the last time an Amazon Web Services access key was used since IAM began tracking this * information on April 22, 2015. *

*

* This data type is used as a response element in the GetAccessKeyLastUsed operation. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AccessKeyLastUsed implements Serializable, Cloneable { /** *

* The date and time, in ISO 8601 date-time format, when the access key * was most recently used. This field is null in the following situations: *

* */ private java.util.Date lastUsedDate; /** *

* The name of the Amazon Web Services service with which this access key was most recently used. The value of this * field is "N/A" in the following situations: *

* */ private String serviceName; /** *

* The Amazon Web Services Region where this access key was most recently used. The value for this field is "N/A" in * the following situations: *

* *

* For more information about Amazon Web Services Regions, see Regions and endpoints in the Amazon Web * Services General Reference. *

*/ private String region; /** *

* The date and time, in ISO 8601 date-time format, when the access key * was most recently used. This field is null in the following situations: *

* * * @param lastUsedDate * The date and time, in ISO 8601 date-time format, when the * access key was most recently used. This field is null in the following situations:

*