AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutPolicyRequest.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/fms/FMSRequest.h>
9#include <aws/fms/model/Policy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/fms/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace FMS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_FMS_API PutPolicyRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutPolicy"; }
33
34 AWS_FMS_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Policy& GetPolicy() const { return m_policy; }
44 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
45 template<typename PolicyT = Policy>
46 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
47 template<typename PolicyT = Policy>
48 PutPolicyRequest& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
50
52
55 inline const Aws::Vector<Tag>& GetTagList() const { return m_tagList; }
56 inline bool TagListHasBeenSet() const { return m_tagListHasBeenSet; }
57 template<typename TagListT = Aws::Vector<Tag>>
58 void SetTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList = std::forward<TagListT>(value); }
59 template<typename TagListT = Aws::Vector<Tag>>
60 PutPolicyRequest& WithTagList(TagListT&& value) { SetTagList(std::forward<TagListT>(value)); return *this;}
61 template<typename TagListT = Tag>
62 PutPolicyRequest& AddTagList(TagListT&& value) { m_tagListHasBeenSet = true; m_tagList.emplace_back(std::forward<TagListT>(value)); return *this; }
64 private:
65
66 Policy m_policy;
67 bool m_policyHasBeenSet = false;
68
69 Aws::Vector<Tag> m_tagList;
70 bool m_tagListHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace FMS
75} // namespace Aws
PutPolicyRequest & WithPolicy(PolicyT &&value)
virtual const char * GetServiceRequestName() const override
PutPolicyRequest & WithTagList(TagListT &&value)
const Aws::Vector< Tag > & GetTagList() const
void SetTagList(TagListT &&value)
AWS_FMS_API Aws::String SerializePayload() const override
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_FMS_API PutPolicyRequest()=default
PutPolicyRequest & AddTagList(TagListT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector