200 lines
6.9 KiB
C++
200 lines
6.9 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iot/IoT_EXPORTS.h>
|
|
#include <aws/iot/IoTRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/iot/model/ResourceIdentifier.h>
|
|
#include <aws/core/utils/DateTime.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IoT
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IOT_API UpdateAuditSuppressionRequest : public IoTRequest
|
|
{
|
|
public:
|
|
UpdateAuditSuppressionRequest();
|
|
|
|
// 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 "UpdateAuditSuppression"; }
|
|
|
|
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 UpdateAuditSuppressionRequest& WithCheckName(const Aws::String& value) { SetCheckName(value); return *this;}
|
|
|
|
|
|
inline UpdateAuditSuppressionRequest& WithCheckName(Aws::String&& value) { SetCheckName(std::move(value)); return *this;}
|
|
|
|
|
|
inline UpdateAuditSuppressionRequest& 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 UpdateAuditSuppressionRequest& WithResourceIdentifier(const ResourceIdentifier& value) { SetResourceIdentifier(value); return *this;}
|
|
|
|
|
|
inline UpdateAuditSuppressionRequest& WithResourceIdentifier(ResourceIdentifier&& value) { SetResourceIdentifier(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline bool ExpirationDateHasBeenSet() const { return m_expirationDateHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
|
|
|
|
/**
|
|
* <p> The expiration date (epoch timestamp in seconds) that you want the
|
|
* suppression to adhere to. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> Indicates whether a suppression should exist indefinitely or not. </p>
|
|
*/
|
|
inline bool GetSuppressIndefinitely() const{ return m_suppressIndefinitely; }
|
|
|
|
/**
|
|
* <p> Indicates whether a suppression should exist indefinitely or not. </p>
|
|
*/
|
|
inline bool SuppressIndefinitelyHasBeenSet() const { return m_suppressIndefinitelyHasBeenSet; }
|
|
|
|
/**
|
|
* <p> Indicates whether a suppression should exist indefinitely or not. </p>
|
|
*/
|
|
inline void SetSuppressIndefinitely(bool value) { m_suppressIndefinitelyHasBeenSet = true; m_suppressIndefinitely = value; }
|
|
|
|
/**
|
|
* <p> Indicates whether a suppression should exist indefinitely or not. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithSuppressIndefinitely(bool value) { SetSuppressIndefinitely(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p> The description of the audit suppression. </p>
|
|
*/
|
|
inline UpdateAuditSuppressionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_checkName;
|
|
bool m_checkNameHasBeenSet;
|
|
|
|
ResourceIdentifier m_resourceIdentifier;
|
|
bool m_resourceIdentifierHasBeenSet;
|
|
|
|
Aws::Utils::DateTime m_expirationDate;
|
|
bool m_expirationDateHasBeenSet;
|
|
|
|
bool m_suppressIndefinitely;
|
|
bool m_suppressIndefinitelyHasBeenSet;
|
|
|
|
Aws::String m_description;
|
|
bool m_descriptionHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|