AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartAccessRequestRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ssm/SSMRequest.h>
10#include <aws/ssm/SSM_EXPORTS.h>
11#include <aws/ssm/model/Tag.h>
12#include <aws/ssm/model/Target.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SSM {
18namespace Model {
19
23 public:
24 AWS_SSM_API StartAccessRequestRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartAccessRequest"; }
31
32 AWS_SSM_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetReason() const { return m_reason; }
41 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
42 template <typename ReasonT = Aws::String>
43 void SetReason(ReasonT&& value) {
44 m_reasonHasBeenSet = true;
45 m_reason = std::forward<ReasonT>(value);
46 }
47 template <typename ReasonT = Aws::String>
49 SetReason(std::forward<ReasonT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Target>& GetTargets() const { return m_targets; }
59 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
60 template <typename TargetsT = Aws::Vector<Target>>
61 void SetTargets(TargetsT&& value) {
62 m_targetsHasBeenSet = true;
63 m_targets = std::forward<TargetsT>(value);
64 }
65 template <typename TargetsT = Aws::Vector<Target>>
67 SetTargets(std::forward<TargetsT>(value));
68 return *this;
69 }
70 template <typename TargetsT = Target>
72 m_targetsHasBeenSet = true;
73 m_targets.emplace_back(std::forward<TargetsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template <typename TagsT = Aws::Vector<Tag>>
85 void SetTags(TagsT&& value) {
86 m_tagsHasBeenSet = true;
87 m_tags = std::forward<TagsT>(value);
88 }
89 template <typename TagsT = Aws::Vector<Tag>>
91 SetTags(std::forward<TagsT>(value));
92 return *this;
93 }
94 template <typename TagsT = Tag>
96 m_tagsHasBeenSet = true;
97 m_tags.emplace_back(std::forward<TagsT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_reason;
103
104 Aws::Vector<Target> m_targets;
105
106 Aws::Vector<Tag> m_tags;
107 bool m_reasonHasBeenSet = false;
108 bool m_targetsHasBeenSet = false;
109 bool m_tagsHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SSM
114} // namespace Aws
AWS_SSM_API StartAccessRequestRequest()=default
const Aws::Vector< Target > & GetTargets() const
StartAccessRequestRequest & WithTargets(TargetsT &&value)
StartAccessRequestRequest & AddTargets(TargetsT &&value)
virtual const char * GetServiceRequestName() const override
StartAccessRequestRequest & AddTags(TagsT &&value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartAccessRequestRequest & WithTags(TagsT &&value)
StartAccessRequestRequest & WithReason(ReasonT &&value)
AWS_SSM_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector