/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53Domains { namespace Model { /** *

Information about a delegation signer (DS) record that was created in the * registry by AssociateDelegationSignerToDomain. *

See Also:

AWS * API Reference

*/ class DnssecSigningAttributes { public: AWS_ROUTE53DOMAINS_API DnssecSigningAttributes(); AWS_ROUTE53DOMAINS_API DnssecSigningAttributes(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53DOMAINS_API DnssecSigningAttributes& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53DOMAINS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Algorithm which was used to generate the digest from the public key.

*/ inline int GetAlgorithm() const{ return m_algorithm; } /** *

Algorithm which was used to generate the digest from the public key.

*/ inline bool AlgorithmHasBeenSet() const { return m_algorithmHasBeenSet; } /** *

Algorithm which was used to generate the digest from the public key.

*/ inline void SetAlgorithm(int value) { m_algorithmHasBeenSet = true; m_algorithm = value; } /** *

Algorithm which was used to generate the digest from the public key.

*/ inline DnssecSigningAttributes& WithAlgorithm(int value) { SetAlgorithm(value); return *this;} /** *

Defines the type of key. It can be either a KSK (key-signing-key, value 257) * or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use * ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

*

If you have KSK and ZSK keys, always use KSK to create a delegations signer * (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

*/ inline int GetFlags() const{ return m_flags; } /** *

Defines the type of key. It can be either a KSK (key-signing-key, value 257) * or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use * ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

*

If you have KSK and ZSK keys, always use KSK to create a delegations signer * (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

*/ inline bool FlagsHasBeenSet() const { return m_flagsHasBeenSet; } /** *

Defines the type of key. It can be either a KSK (key-signing-key, value 257) * or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use * ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

*

If you have KSK and ZSK keys, always use KSK to create a delegations signer * (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

*/ inline void SetFlags(int value) { m_flagsHasBeenSet = true; m_flags = value; } /** *

Defines the type of key. It can be either a KSK (key-signing-key, value 257) * or ZSK (zone-signing-key, value 256). Using KSK is always encouraged. Only use * ZSK if your DNS provider isn't Route 53 and you don’t have KSK available.

*

If you have KSK and ZSK keys, always use KSK to create a delegations signer * (DS) record. If you have ZSK keys only – use ZSK to create a DS record.

*/ inline DnssecSigningAttributes& WithFlags(int value) { SetFlags(value); return *this;} /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline const Aws::String& GetPublicKey() const{ return m_publicKey; } /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline bool PublicKeyHasBeenSet() const { return m_publicKeyHasBeenSet; } /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline void SetPublicKey(const Aws::String& value) { m_publicKeyHasBeenSet = true; m_publicKey = value; } /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline void SetPublicKey(Aws::String&& value) { m_publicKeyHasBeenSet = true; m_publicKey = std::move(value); } /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline void SetPublicKey(const char* value) { m_publicKeyHasBeenSet = true; m_publicKey.assign(value); } /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline DnssecSigningAttributes& WithPublicKey(const Aws::String& value) { SetPublicKey(value); return *this;} /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline DnssecSigningAttributes& WithPublicKey(Aws::String&& value) { SetPublicKey(std::move(value)); return *this;} /** *

The base64-encoded public key part of the key pair that is passed to the * registry.

*/ inline DnssecSigningAttributes& WithPublicKey(const char* value) { SetPublicKey(value); return *this;} private: int m_algorithm; bool m_algorithmHasBeenSet = false; int m_flags; bool m_flagsHasBeenSet = false; Aws::String m_publicKey; bool m_publicKeyHasBeenSet = false; }; } // namespace Model } // namespace Route53Domains } // namespace Aws