/* * 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.location.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribeKeyResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

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

* The optional description for the API key resource. *

*/ private String description; /** *

* The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

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

* The key value/string of an API key. *

*/ private String key; /** *

* The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all * Amazon Web Services. *

* */ private String keyArn; /** *

* The name of the API key resource. *

*/ private String keyName; private ApiKeyRestrictions restrictions; /** *

* Tags associated with the API key resource. *

*/ private java.util.Map tags; /** *

* The timestamp for when the API key resource was last updated in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

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

* The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param createTime * The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setCreateTime(java.util.Date createTime) { this.createTime = createTime; } /** *

* The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getCreateTime() { return this.createTime; } /** *

* The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param createTime * The timestamp for when the API key resource was created in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeKeyResult withCreateTime(java.util.Date createTime) { setCreateTime(createTime); return this; } /** *

* The optional description for the API key resource. *

* * @param description * The optional description for the API key resource. */ public void setDescription(String description) { this.description = description; } /** *

* The optional description for the API key resource. *

* * @return The optional description for the API key resource. */ public String getDescription() { return this.description; } /** *

* The optional description for the API key resource. *

* * @param description * The optional description for the API key resource. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeKeyResult withDescription(String description) { setDescription(description); return this; } /** *

* The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param expireTime * The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public void setExpireTime(java.util.Date expireTime) { this.expireTime = expireTime; } /** *

* The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @return The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. */ public java.util.Date getExpireTime() { return this.expireTime; } /** *

* The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. *

* * @param expireTime * The timestamp for when the API key resource will expire in ISO 8601 format: * YYYY-MM-DDThh:mm:ss.sssZ. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeKeyResult withExpireTime(java.util.Date expireTime) { setExpireTime(expireTime); return this; } /** *

* The key value/string of an API key. *

* * @param key * The key value/string of an API key. */ public void setKey(String key) { this.key = key; } /** *

* The key value/string of an API key. *

* * @return The key value/string of an API key. */ public String getKey() { return this.key; } /** *

* The key value/string of an API key. *

* * @param key * The key value/string of an API key. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeKeyResult withKey(String key) { setKey(key); return this; } /** *

* The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across all * Amazon Web Services. *

* * * @param keyArn * The Amazon Resource Name (ARN) for the API key resource. Used when you need to specify a resource across * all Amazon Web Services.

*