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

The details of the Firewall Manager policy to be created.

*/ inline const Policy& GetPolicy() const{ return m_policy; } /** *

The details of the Firewall Manager policy to be created.

*/ inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; } /** *

The details of the Firewall Manager policy to be created.

*/ inline void SetPolicy(const Policy& value) { m_policyHasBeenSet = true; m_policy = value; } /** *

The details of the Firewall Manager policy to be created.

*/ inline void SetPolicy(Policy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); } /** *

The details of the Firewall Manager policy to be created.

*/ inline PutPolicyRequest& WithPolicy(const Policy& value) { SetPolicy(value); return *this;} /** *

The details of the Firewall Manager policy to be created.

*/ inline PutPolicyRequest& WithPolicy(Policy&& value) { SetPolicy(std::move(value)); return *this;} /** *

The tags to add to the Amazon Web Services resource.

*/ inline const Aws::Vector& GetTagList() const{ return m_tagList; } /** *

The tags to add to the Amazon Web Services resource.

*/ inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; } /** *

The tags to add to the Amazon Web Services resource.

*/ inline void SetTagList(const Aws::Vector& value) { m_tagListHasBeenSet = true; m_tagList = value; } /** *

The tags to add to the Amazon Web Services resource.

*/ inline void SetTagList(Aws::Vector&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); } /** *

The tags to add to the Amazon Web Services resource.

*/ inline PutPolicyRequest& WithTagList(const Aws::Vector& value) { SetTagList(value); return *this;} /** *

The tags to add to the Amazon Web Services resource.

*/ inline PutPolicyRequest& WithTagList(Aws::Vector&& value) { SetTagList(std::move(value)); return *this;} /** *

The tags to add to the Amazon Web Services resource.

*/ inline PutPolicyRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; } /** *

The tags to add to the Amazon Web Services resource.

*/ inline PutPolicyRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(value)); return *this; } private: Policy m_policy; bool m_policyHasBeenSet = false; Aws::Vector m_tagList; bool m_tagListHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws