/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the kms-2014-11-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.KeyManagementService.Model { /// /// This is the response object from the CreateGrant operation. /// public partial class CreateGrantResponse : AmazonWebServiceResponse { private string _grantId; private string _grantToken; /// /// Gets and sets the property GrantId. /// /// The unique identifier for the grant. /// /// /// /// You can use the GrantId in a ListGrants, RetireGrant, or /// RevokeGrant operation. /// /// [AWSProperty(Min=1, Max=128)] public string GrantId { get { return this._grantId; } set { this._grantId = value; } } // Check to see if GrantId property is set internal bool IsSetGrantId() { return this._grantId != null; } /// /// Gets and sets the property GrantToken. /// /// The grant token. /// /// /// /// Use a grant token when your permission to call this operation comes from a new grant /// that has not yet achieved eventual consistency. For more information, see Grant /// token and Using /// a grant token in the Key Management Service Developer Guide. /// /// [AWSProperty(Min=1, Max=8192)] public string GrantToken { get { return this._grantToken; } set { this._grantToken = value; } } // Check to see if GrantToken property is set internal bool IsSetGrantToken() { return this._grantToken != null; } } }