/*
* 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 acm-pca-2017-08-22.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.ACMPCA.Model
{
///
/// Defines one or more purposes for which the key contained in the certificate can be
/// used. Default value for each option is false.
///
public partial class KeyUsage
{
private bool? _crlSign;
private bool? _dataEncipherment;
private bool? _decipherOnly;
private bool? _digitalSignature;
private bool? _encipherOnly;
private bool? _keyAgreement;
private bool? _keyCertSign;
private bool? _keyEncipherment;
private bool? _nonRepudiation;
///
/// Gets and sets the property CRLSign.
///
/// Key can be used to sign CRLs.
///
///
public bool CRLSign
{
get { return this._crlSign.GetValueOrDefault(); }
set { this._crlSign = value; }
}
// Check to see if CRLSign property is set
internal bool IsSetCRLSign()
{
return this._crlSign.HasValue;
}
///
/// Gets and sets the property DataEncipherment.
///
/// Key can be used to decipher data.
///
///
public bool DataEncipherment
{
get { return this._dataEncipherment.GetValueOrDefault(); }
set { this._dataEncipherment = value; }
}
// Check to see if DataEncipherment property is set
internal bool IsSetDataEncipherment()
{
return this._dataEncipherment.HasValue;
}
///
/// Gets and sets the property DecipherOnly.
///
/// Key can be used only to decipher data.
///
///
public bool DecipherOnly
{
get { return this._decipherOnly.GetValueOrDefault(); }
set { this._decipherOnly = value; }
}
// Check to see if DecipherOnly property is set
internal bool IsSetDecipherOnly()
{
return this._decipherOnly.HasValue;
}
///
/// Gets and sets the property DigitalSignature.
///
/// Key can be used for digital signing.
///
///
public bool DigitalSignature
{
get { return this._digitalSignature.GetValueOrDefault(); }
set { this._digitalSignature = value; }
}
// Check to see if DigitalSignature property is set
internal bool IsSetDigitalSignature()
{
return this._digitalSignature.HasValue;
}
///
/// Gets and sets the property EncipherOnly.
///
/// Key can be used only to encipher data.
///
///
public bool EncipherOnly
{
get { return this._encipherOnly.GetValueOrDefault(); }
set { this._encipherOnly = value; }
}
// Check to see if EncipherOnly property is set
internal bool IsSetEncipherOnly()
{
return this._encipherOnly.HasValue;
}
///
/// Gets and sets the property KeyAgreement.
///
/// Key can be used in a key-agreement protocol.
///
///
public bool KeyAgreement
{
get { return this._keyAgreement.GetValueOrDefault(); }
set { this._keyAgreement = value; }
}
// Check to see if KeyAgreement property is set
internal bool IsSetKeyAgreement()
{
return this._keyAgreement.HasValue;
}
///
/// Gets and sets the property KeyCertSign.
///
/// Key can be used to sign certificates.
///
///
public bool KeyCertSign
{
get { return this._keyCertSign.GetValueOrDefault(); }
set { this._keyCertSign = value; }
}
// Check to see if KeyCertSign property is set
internal bool IsSetKeyCertSign()
{
return this._keyCertSign.HasValue;
}
///
/// Gets and sets the property KeyEncipherment.
///
/// Key can be used to encipher data.
///
///
public bool KeyEncipherment
{
get { return this._keyEncipherment.GetValueOrDefault(); }
set { this._keyEncipherment = value; }
}
// Check to see if KeyEncipherment property is set
internal bool IsSetKeyEncipherment()
{
return this._keyEncipherment.HasValue;
}
///
/// Gets and sets the property NonRepudiation.
///
/// Key can be used for non-repudiation.
///
///
public bool NonRepudiation
{
get { return this._nonRepudiation.GetValueOrDefault(); }
set { this._nonRepudiation = value; }
}
// Check to see if NonRepudiation property is set
internal bool IsSetNonRepudiation()
{
return this._nonRepudiation.HasValue;
}
}
}