AWS SDK for C++  1.9.109
AWS SDK for C++
SetDefaultPolicyVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IoT
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "SetDefaultPolicyVersion"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
43 
47  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
48 
52  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
53 
57  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
58 
62  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
63 
67  inline SetDefaultPolicyVersionRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
68 
72  inline SetDefaultPolicyVersionRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
73 
77  inline SetDefaultPolicyVersionRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
78 
79 
83  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
84 
88  inline bool PolicyVersionIdHasBeenSet() const { return m_policyVersionIdHasBeenSet; }
89 
93  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = value; }
94 
98  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::move(value); }
99 
103  inline void SetPolicyVersionId(const char* value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId.assign(value); }
104 
108  inline SetDefaultPolicyVersionRequest& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
109 
113  inline SetDefaultPolicyVersionRequest& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
114 
118  inline SetDefaultPolicyVersionRequest& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
119 
120  private:
121 
122  Aws::String m_policyName;
123  bool m_policyNameHasBeenSet;
124 
125  Aws::String m_policyVersionId;
126  bool m_policyVersionIdHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace IoT
131 } // namespace Aws
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: SetDefaultPolicyVersionRequest.h:93
Aws::IoT::Model::SetDefaultPolicyVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetDefaultPolicyVersionRequest.h:34
Aws::IoT::Model::SetDefaultPolicyVersionRequest
Definition: SetDefaultPolicyVersionRequest.h:26
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: SetDefaultPolicyVersionRequest.h:52
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyVersionId
SetDefaultPolicyVersionRequest & WithPolicyVersionId(const char *value)
Definition: SetDefaultPolicyVersionRequest.h:118
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyVersionId
SetDefaultPolicyVersionRequest & WithPolicyVersionId(const Aws::String &value)
Definition: SetDefaultPolicyVersionRequest.h:108
Aws::IoT::Model::SetDefaultPolicyVersionRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: SetDefaultPolicyVersionRequest.h:42
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: SetDefaultPolicyVersionRequest.h:57
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyName
SetDefaultPolicyVersionRequest & WithPolicyName(Aws::String &&value)
Definition: SetDefaultPolicyVersionRequest.h:72
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: SetDefaultPolicyVersionRequest.h:62
AWSString.h
Aws::IoT::Model::SetDefaultPolicyVersionRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: SetDefaultPolicyVersionRequest.h:47
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetDefaultPolicyVersionRequest
SetDefaultPolicyVersionRequest()
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyVersionId
SetDefaultPolicyVersionRequest & WithPolicyVersionId(Aws::String &&value)
Definition: SetDefaultPolicyVersionRequest.h:113
Aws::IoT::Model::SetDefaultPolicyVersionRequest::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: SetDefaultPolicyVersionRequest.h:83
Aws::IoT::Model::SetDefaultPolicyVersionRequest::PolicyVersionIdHasBeenSet
bool PolicyVersionIdHasBeenSet() const
Definition: SetDefaultPolicyVersionRequest.h:88
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: SetDefaultPolicyVersionRequest.h:98
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyName
SetDefaultPolicyVersionRequest & WithPolicyName(const Aws::String &value)
Definition: SetDefaultPolicyVersionRequest.h:67
Aws::IoT::Model::SetDefaultPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: SetDefaultPolicyVersionRequest.h:103
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
IoTRequest.h
IoT_EXPORTS.h
Aws::IoT::Model::SetDefaultPolicyVersionRequest::WithPolicyName
SetDefaultPolicyVersionRequest & WithPolicyName(const char *value)
Definition: SetDefaultPolicyVersionRequest.h:77