AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePolicyRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IoT
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_IOT_API CreatePolicyRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreatePolicy"; }
36
37 AWS_IOT_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
45 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
46 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
47 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
48 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
49 inline CreatePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
50 inline CreatePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
51 inline CreatePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
53
55
59 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
60 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
61 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
62 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
63 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
64 inline CreatePolicyRequest& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
65 inline CreatePolicyRequest& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
66 inline CreatePolicyRequest& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
68
70
77 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
78 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
79 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
80 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
81 inline CreatePolicyRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
82 inline CreatePolicyRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
83 inline CreatePolicyRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
84 inline CreatePolicyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_policyName;
89 bool m_policyNameHasBeenSet = false;
90
91 Aws::String m_policyDocument;
92 bool m_policyDocumentHasBeenSet = false;
93
94 Aws::Vector<Tag> m_tags;
95 bool m_tagsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
const Aws::String & GetPolicyName() const
void SetPolicyDocument(Aws::String &&value)
CreatePolicyRequest & AddTags(Tag &&value)
CreatePolicyRequest & WithPolicyDocument(const char *value)
CreatePolicyRequest & WithPolicyName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
void SetPolicyName(const Aws::String &value)
const Aws::String & GetPolicyDocument() const
CreatePolicyRequest & WithPolicyName(const Aws::String &value)
void SetPolicyDocument(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
CreatePolicyRequest & WithPolicyDocument(Aws::String &&value)
CreatePolicyRequest & WithPolicyDocument(const Aws::String &value)
CreatePolicyRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreatePolicyRequest & WithPolicyName(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
CreatePolicyRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePolicyRequest & AddTags(const Tag &value)
void SetPolicyName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector