AWS SDK for C++  1.9.132
AWS SDK for C++
ListPolicyVersionsRequest.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 "ListPolicyVersions"; }
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 ListPolicyVersionsRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
67 
71  inline ListPolicyVersionsRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
72 
76  inline ListPolicyVersionsRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
77 
78  private:
79 
80  Aws::String m_policyName;
81  bool m_policyNameHasBeenSet;
82  };
83 
84 } // namespace Model
85 } // namespace IoT
86 } // namespace Aws
Aws::IoT::Model::ListPolicyVersionsRequest::WithPolicyName
ListPolicyVersionsRequest & WithPolicyName(Aws::String &&value)
Definition: ListPolicyVersionsRequest.h:71
Aws::IoT::Model::ListPolicyVersionsRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: ListPolicyVersionsRequest.h:41
Aws::IoT::Model::ListPolicyVersionsRequest::ListPolicyVersionsRequest
ListPolicyVersionsRequest()
Aws::IoT::Model::ListPolicyVersionsRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: ListPolicyVersionsRequest.h:56
Aws::IoT::Model::ListPolicyVersionsRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: ListPolicyVersionsRequest.h:46
Aws::IoT::Model::ListPolicyVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListPolicyVersionsRequest.h:33
Aws::IoT::Model::ListPolicyVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListPolicyVersionsRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: ListPolicyVersionsRequest.h:61
Aws::IoT::Model::ListPolicyVersionsRequest::WithPolicyName
ListPolicyVersionsRequest & WithPolicyName(const char *value)
Definition: ListPolicyVersionsRequest.h:76
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ListPolicyVersionsRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: ListPolicyVersionsRequest.h:51
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
IoTRequest.h
Aws::IoT::Model::ListPolicyVersionsRequest::WithPolicyName
ListPolicyVersionsRequest & WithPolicyName(const Aws::String &value)
Definition: ListPolicyVersionsRequest.h:66
Aws::IoT::Model::ListPolicyVersionsRequest
Definition: ListPolicyVersionsRequest.h:25
IoT_EXPORTS.h