/** * 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 IoT { namespace Model { /** */ class CreateAuditSuppressionRequest : public IoTRequest { public: AWS_IOT_API CreateAuditSuppressionRequest(); // 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 "CreateAuditSuppression"; } AWS_IOT_API Aws::String SerializePayload() const override; inline const Aws::String& GetCheckName() const{ return m_checkName; } inline bool CheckNameHasBeenSet() const { return m_checkNameHasBeenSet; } inline void SetCheckName(const Aws::String& value) { m_checkNameHasBeenSet = true; m_checkName = value; } inline void SetCheckName(Aws::String&& value) { m_checkNameHasBeenSet = true; m_checkName = std::move(value); } inline void SetCheckName(const char* value) { m_checkNameHasBeenSet = true; m_checkName.assign(value); } inline CreateAuditSuppressionRequest& WithCheckName(const Aws::String& value) { SetCheckName(value); return *this;} inline CreateAuditSuppressionRequest& WithCheckName(Aws::String&& value) { SetCheckName(std::move(value)); return *this;} inline CreateAuditSuppressionRequest& WithCheckName(const char* value) { SetCheckName(value); return *this;} inline const ResourceIdentifier& GetResourceIdentifier() const{ return m_resourceIdentifier; } inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } inline void SetResourceIdentifier(const ResourceIdentifier& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } inline void SetResourceIdentifier(ResourceIdentifier&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } inline CreateAuditSuppressionRequest& WithResourceIdentifier(const ResourceIdentifier& value) { SetResourceIdentifier(value); return *this;} inline CreateAuditSuppressionRequest& WithResourceIdentifier(ResourceIdentifier&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; } /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; } /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; } /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); } /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline CreateAuditSuppressionRequest& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;} /** *

The epoch timestamp in seconds at which this suppression expires.

*/ inline CreateAuditSuppressionRequest& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;} /** *

Indicates whether a suppression should exist indefinitely or not.

*/ inline bool GetSuppressIndefinitely() const{ return m_suppressIndefinitely; } /** *

Indicates whether a suppression should exist indefinitely or not.

*/ inline bool SuppressIndefinitelyHasBeenSet() const { return m_suppressIndefinitelyHasBeenSet; } /** *

Indicates whether a suppression should exist indefinitely or not.

*/ inline void SetSuppressIndefinitely(bool value) { m_suppressIndefinitelyHasBeenSet = true; m_suppressIndefinitely = value; } /** *

Indicates whether a suppression should exist indefinitely or not.

*/ inline CreateAuditSuppressionRequest& WithSuppressIndefinitely(bool value) { SetSuppressIndefinitely(value); return *this;} /** *

The description of the audit suppression.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the audit suppression.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the audit suppression.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the audit suppression.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the audit suppression.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the audit suppression.

*/ inline CreateAuditSuppressionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the audit suppression.

*/ inline CreateAuditSuppressionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the audit suppression.

*/ inline CreateAuditSuppressionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; } /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; } /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; } /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); } /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); } /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateAuditSuppressionRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;} /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateAuditSuppressionRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;} /** *

Each audit supression must have a unique client request token. If you try to * create a new audit suppression with the same token as one that already exists, * an exception occurs. If you omit this value, Amazon Web Services SDKs will * automatically generate a unique client request.

*/ inline CreateAuditSuppressionRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;} private: Aws::String m_checkName; bool m_checkNameHasBeenSet = false; ResourceIdentifier m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; Aws::Utils::DateTime m_expirationDate; bool m_expirationDateHasBeenSet = false; bool m_suppressIndefinitely; bool m_suppressIndefinitelyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientRequestToken; bool m_clientRequestTokenHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws