/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace FMS { namespace Model { /** */ class PutNotificationChannelRequest : public FMSRequest { public: AWS_FMS_API PutNotificationChannelRequest(); // 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 "PutNotificationChannel"; } AWS_FMS_API Aws::String SerializePayload() const override; AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline const Aws::String& GetSnsTopicArn() const{ return m_snsTopicArn; } /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline bool SnsTopicArnHasBeenSet() const { return m_snsTopicArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline void SetSnsTopicArn(const Aws::String& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = value; } /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline void SetSnsTopicArn(Aws::String&& value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline void SetSnsTopicArn(const char* value) { m_snsTopicArnHasBeenSet = true; m_snsTopicArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline PutNotificationChannelRequest& WithSnsTopicArn(const Aws::String& value) { SetSnsTopicArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline PutNotificationChannelRequest& WithSnsTopicArn(Aws::String&& value) { SetSnsTopicArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the SNS topic that collects notifications * from Firewall Manager.

*/ inline PutNotificationChannelRequest& WithSnsTopicArn(const char* value) { SetSnsTopicArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline const Aws::String& GetSnsRoleName() const{ return m_snsRoleName; } /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline bool SnsRoleNameHasBeenSet() const { return m_snsRoleNameHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline void SetSnsRoleName(const Aws::String& value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName = value; } /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline void SetSnsRoleName(Aws::String&& value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName = std::move(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline void SetSnsRoleName(const char* value) { m_snsRoleNameHasBeenSet = true; m_snsRoleName.assign(value); } /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline PutNotificationChannelRequest& WithSnsRoleName(const Aws::String& value) { SetSnsRoleName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline PutNotificationChannelRequest& WithSnsRoleName(Aws::String&& value) { SetSnsRoleName(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the IAM role that allows Amazon SNS to * record Firewall Manager activity.

*/ inline PutNotificationChannelRequest& WithSnsRoleName(const char* value) { SetSnsRoleName(value); return *this;} private: Aws::String m_snsTopicArn; bool m_snsTopicArnHasBeenSet = false; Aws::String m_snsRoleName; bool m_snsRoleNameHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws