AWS SDK for C++  1.9.129
AWS SDK for C++
GetPolicyVersionRequest.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 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetPolicyVersion"; }
34 
35  Aws::String SerializePayload() const override;
36 
37 
41  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
42 
46  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
47 
51  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
52 
56  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
57 
61  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
62 
66  inline GetPolicyVersionRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 
71  inline GetPolicyVersionRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
72 
76  inline GetPolicyVersionRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
77 
78 
82  inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
83 
87  inline bool PolicyVersionIdHasBeenSet() const { return m_policyVersionIdHasBeenSet; }
88 
92  inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = value; }
93 
97  inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::move(value); }
98 
102  inline void SetPolicyVersionId(const char* value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId.assign(value); }
103 
107  inline GetPolicyVersionRequest& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
108 
112  inline GetPolicyVersionRequest& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
113 
117  inline GetPolicyVersionRequest& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
118 
119  private:
120 
121  Aws::String m_policyName;
122  bool m_policyNameHasBeenSet;
123 
124  Aws::String m_policyVersionId;
125  bool m_policyVersionIdHasBeenSet;
126  };
127 
128 } // namespace Model
129 } // namespace IoT
130 } // namespace Aws
Aws::IoT::Model::GetPolicyVersionRequest::WithPolicyVersionId
GetPolicyVersionRequest & WithPolicyVersionId(const Aws::String &value)
Definition: GetPolicyVersionRequest.h:107
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(const char *value)
Definition: GetPolicyVersionRequest.h:102
Aws::IoT::Model::GetPolicyVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetPolicyVersionRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: GetPolicyVersionRequest.h:46
Aws::IoT::Model::GetPolicyVersionRequest::WithPolicyName
GetPolicyVersionRequest & WithPolicyName(Aws::String &&value)
Definition: GetPolicyVersionRequest.h:71
Aws::IoT::Model::GetPolicyVersionRequest::GetPolicyVersionRequest
GetPolicyVersionRequest()
Aws::IoT::Model::GetPolicyVersionRequest::PolicyVersionIdHasBeenSet
bool PolicyVersionIdHasBeenSet() const
Definition: GetPolicyVersionRequest.h:87
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(Aws::String &&value)
Definition: GetPolicyVersionRequest.h:97
Aws::IoT::Model::GetPolicyVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetPolicyVersionRequest.h:33
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: GetPolicyVersionRequest.h:56
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: GetPolicyVersionRequest.h:51
Aws::IoT::Model::GetPolicyVersionRequest::WithPolicyName
GetPolicyVersionRequest & WithPolicyName(const char *value)
Definition: GetPolicyVersionRequest.h:76
Aws::IoT::Model::GetPolicyVersionRequest::GetPolicyVersionId
const Aws::String & GetPolicyVersionId() const
Definition: GetPolicyVersionRequest.h:82
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyVersionId
void SetPolicyVersionId(const Aws::String &value)
Definition: GetPolicyVersionRequest.h:92
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::GetPolicyVersionRequest
Definition: GetPolicyVersionRequest.h:25
Aws::IoT::Model::GetPolicyVersionRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: GetPolicyVersionRequest.h:41
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::GetPolicyVersionRequest::WithPolicyName
GetPolicyVersionRequest & WithPolicyName(const Aws::String &value)
Definition: GetPolicyVersionRequest.h:66
IoTRequest.h
Aws::IoT::Model::GetPolicyVersionRequest::WithPolicyVersionId
GetPolicyVersionRequest & WithPolicyVersionId(Aws::String &&value)
Definition: GetPolicyVersionRequest.h:112
Aws::IoT::Model::GetPolicyVersionRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: GetPolicyVersionRequest.h:61
Aws::IoT::Model::GetPolicyVersionRequest::WithPolicyVersionId
GetPolicyVersionRequest & WithPolicyVersionId(const char *value)
Definition: GetPolicyVersionRequest.h:117
IoT_EXPORTS.h