/** * 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 namespace Aws { namespace RolesAnywhere { namespace Model { /** */ class ImportCrlRequest : public RolesAnywhereRequest { public: AWS_ROLESANYWHERE_API ImportCrlRequest(); // 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 "ImportCrl"; } AWS_ROLESANYWHERE_API Aws::String SerializePayload() const override; /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline const Aws::Utils::ByteBuffer& GetCrlData() const{ return m_crlData; } /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline bool CrlDataHasBeenSet() const { return m_crlDataHasBeenSet; } /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline void SetCrlData(const Aws::Utils::ByteBuffer& value) { m_crlDataHasBeenSet = true; m_crlData = value; } /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline void SetCrlData(Aws::Utils::ByteBuffer&& value) { m_crlDataHasBeenSet = true; m_crlData = std::move(value); } /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline ImportCrlRequest& WithCrlData(const Aws::Utils::ByteBuffer& value) { SetCrlData(value); return *this;} /** *

The x509 v3 specified certificate revocation list (CRL).

*/ inline ImportCrlRequest& WithCrlData(Aws::Utils::ByteBuffer&& value) { SetCrlData(std::move(value)); return *this;} /** *

Specifies whether the certificate revocation list (CRL) is enabled.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Specifies whether the certificate revocation list (CRL) is enabled.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Specifies whether the certificate revocation list (CRL) is enabled.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Specifies whether the certificate revocation list (CRL) is enabled.

*/ inline ImportCrlRequest& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

The name of the certificate revocation list (CRL).

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the certificate revocation list (CRL).

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the certificate revocation list (CRL).

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the certificate revocation list (CRL).

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the certificate revocation list (CRL).

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the certificate revocation list (CRL).

*/ inline ImportCrlRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the certificate revocation list (CRL).

*/ inline ImportCrlRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the certificate revocation list (CRL).

*/ inline ImportCrlRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

A list of tags to attach to the certificate revocation list (CRL).

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

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline const Aws::String& GetTrustAnchorArn() const{ return m_trustAnchorArn; } /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline bool TrustAnchorArnHasBeenSet() const { return m_trustAnchorArnHasBeenSet; } /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline void SetTrustAnchorArn(const Aws::String& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = value; } /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline void SetTrustAnchorArn(Aws::String&& value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn = std::move(value); } /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline void SetTrustAnchorArn(const char* value) { m_trustAnchorArnHasBeenSet = true; m_trustAnchorArn.assign(value); } /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline ImportCrlRequest& WithTrustAnchorArn(const Aws::String& value) { SetTrustAnchorArn(value); return *this;} /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline ImportCrlRequest& WithTrustAnchorArn(Aws::String&& value) { SetTrustAnchorArn(std::move(value)); return *this;} /** *

The ARN of the TrustAnchor the certificate revocation list (CRL) will provide * revocation for.

*/ inline ImportCrlRequest& WithTrustAnchorArn(const char* value) { SetTrustAnchorArn(value); return *this;} private: Aws::Utils::ByteBuffer m_crlData; bool m_crlDataHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_trustAnchorArn; bool m_trustAnchorArnHasBeenSet = false; }; } // namespace Model } // namespace RolesAnywhere } // namespace Aws