AWS SDK for C++  1.9.132
AWS SDK for C++
PolicyVersionIdentifier.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
45 
49  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 
54  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
55 
59  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
60 
64  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
65 
69  inline PolicyVersionIdentifier& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
70 
74  inline PolicyVersionIdentifier& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
75 
79  inline PolicyVersionIdentifier& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
80 
81 
85  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
86 
90  inline bool PolicyVersionIdHasBeenSet() const { return m_policyVersionIdHasBeenSet; }
91 
95  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = value; }
96 
100  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::move(value); }
101 
105  inline void SetPolicyVersionId(const char* value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId.assign(value); }
106 
110  inline PolicyVersionIdentifier& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
111 
115  inline PolicyVersionIdentifier& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
116 
120  inline PolicyVersionIdentifier& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
121 
122  private:
123 
124  Aws::String m_policyName;
125  bool m_policyNameHasBeenSet;
126 
127  Aws::String m_policyVersionId;
128  bool m_policyVersionIdHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace IoT
133 } // namespace Aws
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: PolicyVersionIdentifier.h:100
Aws::IoT::Model::PolicyVersionIdentifier::PolicyVersionIdentifier
PolicyVersionIdentifier()
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyName
PolicyVersionIdentifier & WithPolicyName(const Aws::String &value)
Definition: PolicyVersionIdentifier.h:69
Aws::IoT::Model::PolicyVersionIdentifier::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: PolicyVersionIdentifier.h:85
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyName
PolicyVersionIdentifier & WithPolicyName(Aws::String &&value)
Definition: PolicyVersionIdentifier.h:74
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyVersionId
PolicyVersionIdentifier & WithPolicyVersionId(const Aws::String &value)
Definition: PolicyVersionIdentifier.h:110
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyVersionId
PolicyVersionIdentifier & WithPolicyVersionId(const char *value)
Definition: PolicyVersionIdentifier.h:120
Aws::IoT::Model::PolicyVersionIdentifier::PolicyVersionIdHasBeenSet
bool PolicyVersionIdHasBeenSet() const
Definition: PolicyVersionIdentifier.h:90
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: PolicyVersionIdentifier.h:54
Aws::IoT::Model::PolicyVersionIdentifier
Definition: PolicyVersionIdentifier.h:33
Aws::IoT::Model::PolicyVersionIdentifier::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::PolicyVersionIdentifier::PolicyVersionIdentifier
PolicyVersionIdentifier(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::PolicyVersionIdentifier::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: PolicyVersionIdentifier.h:44
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: PolicyVersionIdentifier.h:95
Aws::IoT::Model::PolicyVersionIdentifier::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: PolicyVersionIdentifier.h:49
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyName
PolicyVersionIdentifier & WithPolicyName(const char *value)
Definition: PolicyVersionIdentifier.h:79
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: PolicyVersionIdentifier.h:105
Aws::IoT::Model::PolicyVersionIdentifier::operator=
PolicyVersionIdentifier & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::PolicyVersionIdentifier::WithPolicyVersionId
PolicyVersionIdentifier & WithPolicyVersionId(Aws::String &&value)
Definition: PolicyVersionIdentifier.h:115
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: PolicyVersionIdentifier.h:59
Aws::IoT::Model::PolicyVersionIdentifier::SetPolicyName
void SetPolicyName(const char *value)
Definition: PolicyVersionIdentifier.h:64
IoT_EXPORTS.h