AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
SetDefaultPolicyVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IoT {
15namespace Model {
16
24 public:
25 AWS_IOT_API SetDefaultPolicyVersionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SetDefaultPolicyVersion"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetPolicyName() const { return m_policyName; }
40 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
41 template <typename PolicyNameT = Aws::String>
42 void SetPolicyName(PolicyNameT&& value) {
43 m_policyNameHasBeenSet = true;
44 m_policyName = std::forward<PolicyNameT>(value);
45 }
46 template <typename PolicyNameT = Aws::String>
48 SetPolicyName(std::forward<PolicyNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPolicyVersionId() const { return m_policyVersionId; }
58 inline bool PolicyVersionIdHasBeenSet() const { return m_policyVersionIdHasBeenSet; }
59 template <typename PolicyVersionIdT = Aws::String>
60 void SetPolicyVersionId(PolicyVersionIdT&& value) {
61 m_policyVersionIdHasBeenSet = true;
62 m_policyVersionId = std::forward<PolicyVersionIdT>(value);
63 }
64 template <typename PolicyVersionIdT = Aws::String>
66 SetPolicyVersionId(std::forward<PolicyVersionIdT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_policyName;
72 bool m_policyNameHasBeenSet = false;
73
74 Aws::String m_policyVersionId;
75 bool m_policyVersionIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoT
80} // namespace Aws
SetDefaultPolicyVersionRequest & WithPolicyVersionId(PolicyVersionIdT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
SetDefaultPolicyVersionRequest & WithPolicyName(PolicyNameT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String