AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetPolicy(const Policy& value) { m_policyHasBeenSet = true; m_policy = value; }
46 inline void SetPolicy(Policy&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
47 inline PutPolicyRequest& WithPolicy(const Policy& value) { SetPolicy(value); return *this;}
48 inline PutPolicyRequest& WithPolicy(Policy&& value) { SetPolicy(std::move(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 inline void SetTagList(const Aws::Vector<Tag>& value) { m_tagListHasBeenSet = true; m_tagList = value; }
58 inline void SetTagList(Aws::Vector<Tag>&& value) { m_tagListHasBeenSet = true; m_tagList = std::move(value); }
59 inline PutPolicyRequest& WithTagList(const Aws::Vector<Tag>& value) { SetTagList(value); return *this;}
60 inline PutPolicyRequest& WithTagList(Aws::Vector<Tag>&& value) { SetTagList(std::move(value)); return *this;}
61 inline PutPolicyRequest& AddTagList(const Tag& value) { m_tagListHasBeenSet = true; m_tagList.push_back(value); return *this; }
62 inline PutPolicyRequest& AddTagList(Tag&& value) { m_tagListHasBeenSet = true; m_tagList.push_back(std::move(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 & WithTagList(const Aws::Vector< Tag > &value)
virtual const char * GetServiceRequestName() const override
PutPolicyRequest & WithPolicy(Policy &&value)
PutPolicyRequest & WithPolicy(const Policy &value)
PutPolicyRequest & AddTagList(const Tag &value)
PutPolicyRequest & WithTagList(Aws::Vector< Tag > &&value)
PutPolicyRequest & AddTagList(Tag &&value)
void SetPolicy(const Policy &value)
const Aws::Vector< Tag > & GetTagList() const
AWS_FMS_API Aws::String SerializePayload() const override
void SetTagList(Aws::Vector< Tag > &&value)
AWS_FMS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetTagList(const Aws::Vector< Tag > &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