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

The input to the RegisterCACertificate operation.

See Also:

* AWS * API Reference

*/ class RegisterCACertificateRequest : public IoTRequest { public: AWS_IOT_API RegisterCACertificateRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "RegisterCACertificate"; } AWS_IOT_API Aws::String SerializePayload() const override; AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The CA certificate.

*/ inline const Aws::String& GetCaCertificate() const{ return m_caCertificate; } /** *

The CA certificate.

*/ inline bool CaCertificateHasBeenSet() const { return m_caCertificateHasBeenSet; } /** *

The CA certificate.

*/ inline void SetCaCertificate(const Aws::String& value) { m_caCertificateHasBeenSet = true; m_caCertificate = value; } /** *

The CA certificate.

*/ inline void SetCaCertificate(Aws::String&& value) { m_caCertificateHasBeenSet = true; m_caCertificate = std::move(value); } /** *

The CA certificate.

*/ inline void SetCaCertificate(const char* value) { m_caCertificateHasBeenSet = true; m_caCertificate.assign(value); } /** *

The CA certificate.

*/ inline RegisterCACertificateRequest& WithCaCertificate(const Aws::String& value) { SetCaCertificate(value); return *this;} /** *

The CA certificate.

*/ inline RegisterCACertificateRequest& WithCaCertificate(Aws::String&& value) { SetCaCertificate(std::move(value)); return *this;} /** *

The CA certificate.

*/ inline RegisterCACertificateRequest& WithCaCertificate(const char* value) { SetCaCertificate(value); return *this;} /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline const Aws::String& GetVerificationCertificate() const{ return m_verificationCertificate; } /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline bool VerificationCertificateHasBeenSet() const { return m_verificationCertificateHasBeenSet; } /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline void SetVerificationCertificate(const Aws::String& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = value; } /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline void SetVerificationCertificate(Aws::String&& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = std::move(value); } /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline void SetVerificationCertificate(const char* value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate.assign(value); } /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline RegisterCACertificateRequest& WithVerificationCertificate(const Aws::String& value) { SetVerificationCertificate(value); return *this;} /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline RegisterCACertificateRequest& WithVerificationCertificate(Aws::String&& value) { SetVerificationCertificate(std::move(value)); return *this;} /** *

The private key verification certificate. If certificateMode is * SNI_ONLY, the verificationCertificate field must be * empty. If certificateMode is DEFAULT or not provided, * the verificationCertificate field must not be empty.

*/ inline RegisterCACertificateRequest& WithVerificationCertificate(const char* value) { SetVerificationCertificate(value); return *this;} /** *

A boolean value that specifies if the CA certificate is set to active.

*

Valid values: ACTIVE | INACTIVE

*/ inline bool GetSetAsActive() const{ return m_setAsActive; } /** *

A boolean value that specifies if the CA certificate is set to active.

*

Valid values: ACTIVE | INACTIVE

*/ inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; } /** *

A boolean value that specifies if the CA certificate is set to active.

*

Valid values: ACTIVE | INACTIVE

*/ inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; } /** *

A boolean value that specifies if the CA certificate is set to active.

*

Valid values: ACTIVE | INACTIVE

*/ inline RegisterCACertificateRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;} /** *

Allows this CA certificate to be used for auto registration of device * certificates.

*/ inline bool GetAllowAutoRegistration() const{ return m_allowAutoRegistration; } /** *

Allows this CA certificate to be used for auto registration of device * certificates.

*/ inline bool AllowAutoRegistrationHasBeenSet() const { return m_allowAutoRegistrationHasBeenSet; } /** *

Allows this CA certificate to be used for auto registration of device * certificates.

*/ inline void SetAllowAutoRegistration(bool value) { m_allowAutoRegistrationHasBeenSet = true; m_allowAutoRegistration = value; } /** *

Allows this CA certificate to be used for auto registration of device * certificates.

*/ inline RegisterCACertificateRequest& WithAllowAutoRegistration(bool value) { SetAllowAutoRegistration(value); return *this;} /** *

Information about the registration configuration.

*/ inline const RegistrationConfig& GetRegistrationConfig() const{ return m_registrationConfig; } /** *

Information about the registration configuration.

*/ inline bool RegistrationConfigHasBeenSet() const { return m_registrationConfigHasBeenSet; } /** *

Information about the registration configuration.

*/ inline void SetRegistrationConfig(const RegistrationConfig& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = value; } /** *

Information about the registration configuration.

*/ inline void SetRegistrationConfig(RegistrationConfig&& value) { m_registrationConfigHasBeenSet = true; m_registrationConfig = std::move(value); } /** *

Information about the registration configuration.

*/ inline RegisterCACertificateRequest& WithRegistrationConfig(const RegistrationConfig& value) { SetRegistrationConfig(value); return *this;} /** *

Information about the registration configuration.

*/ inline RegisterCACertificateRequest& WithRegistrationConfig(RegistrationConfig&& value) { SetRegistrationConfig(std::move(value)); return *this;} /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline RegisterCACertificateRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline RegisterCACertificateRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline RegisterCACertificateRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Metadata which can be used to manage the CA certificate.

For * URI Request parameters use format: ...key1=value1&key2=value2...

For * the CLI command-line parameter use format: &&tags * "key1=value1&key2=value2..."

For the cli-input-json file use format: * "tags": "key1=value1&key2=value2..."

*/ inline RegisterCACertificateRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline const CertificateMode& GetCertificateMode() const{ return m_certificateMode; } /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline bool CertificateModeHasBeenSet() const { return m_certificateModeHasBeenSet; } /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline void SetCertificateMode(const CertificateMode& value) { m_certificateModeHasBeenSet = true; m_certificateMode = value; } /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline void SetCertificateMode(CertificateMode&& value) { m_certificateModeHasBeenSet = true; m_certificateMode = std::move(value); } /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline RegisterCACertificateRequest& WithCertificateMode(const CertificateMode& value) { SetCertificateMode(value); return *this;} /** *

Describes the certificate mode in which the Certificate Authority (CA) will * be registered. If the verificationCertificate field is not * provided, set certificateMode to be SNI_ONLY. If the * verificationCertificate field is provided, set * certificateMode to be DEFAULT. When * certificateMode is not provided, it defaults to * DEFAULT. All the device certificates that are registered using this * CA will be registered in the same certificate mode as the CA. For more * information about certificate mode for device certificates, see * certificate mode.

*/ inline RegisterCACertificateRequest& WithCertificateMode(CertificateMode&& value) { SetCertificateMode(std::move(value)); return *this;} private: Aws::String m_caCertificate; bool m_caCertificateHasBeenSet = false; Aws::String m_verificationCertificate; bool m_verificationCertificateHasBeenSet = false; bool m_setAsActive; bool m_setAsActiveHasBeenSet = false; bool m_allowAutoRegistration; bool m_allowAutoRegistrationHasBeenSet = false; RegistrationConfig m_registrationConfig; bool m_registrationConfigHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; CertificateMode m_certificateMode; bool m_certificateModeHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws