AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartSessionRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SSM_API StartSessionRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "StartSession"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetTarget() const{ return m_target; }
44 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
45 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
46 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
47 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
48 inline StartSessionRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
49 inline StartSessionRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
50 inline StartSessionRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
52
54
64 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
65 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
66 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
67 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
68 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
69 inline StartSessionRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
70 inline StartSessionRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
71 inline StartSessionRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
73
75
80 inline const Aws::String& GetReason() const{ return m_reason; }
81 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
82 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
83 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
84 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
85 inline StartSessionRequest& WithReason(const Aws::String& value) { SetReason(value); return *this;}
86 inline StartSessionRequest& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
87 inline StartSessionRequest& WithReason(const char* value) { SetReason(value); return *this;}
89
91
95 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetParameters() const{ return m_parameters; }
96 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
97 inline void SetParameters(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
98 inline void SetParameters(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
101 inline StartSessionRequest& AddParameters(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
102 inline StartSessionRequest& AddParameters(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
103 inline StartSessionRequest& AddParameters(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
104 inline StartSessionRequest& AddParameters(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
105 inline StartSessionRequest& AddParameters(const char* key, Aws::Vector<Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
106 inline StartSessionRequest& AddParameters(const char* key, const Aws::Vector<Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
108 private:
109
110 Aws::String m_target;
111 bool m_targetHasBeenSet = false;
112
113 Aws::String m_documentName;
114 bool m_documentNameHasBeenSet = false;
115
116 Aws::String m_reason;
117 bool m_reasonHasBeenSet = false;
118
120 bool m_parametersHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace SSM
125} // namespace Aws
StartSessionRequest & AddParameters(Aws::String &&key, Aws::Vector< Aws::String > &&value)
StartSessionRequest & AddParameters(const char *key, const Aws::Vector< Aws::String > &value)
StartSessionRequest & WithDocumentName(Aws::String &&value)
void SetDocumentName(const Aws::String &value)
void SetReason(const Aws::String &value)
StartSessionRequest & WithReason(const Aws::String &value)
void SetDocumentName(Aws::String &&value)
const Aws::String & GetReason() const
void SetTarget(const Aws::String &value)
const Aws::String & GetTarget() const
StartSessionRequest & WithParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
StartSessionRequest & AddParameters(Aws::String &&key, const Aws::Vector< Aws::String > &value)
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartSessionRequest & WithTarget(const char *value)
StartSessionRequest & WithParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
StartSessionRequest & WithReason(Aws::String &&value)
AWS_SSM_API Aws::String SerializePayload() const override
StartSessionRequest & WithDocumentName(const Aws::String &value)
StartSessionRequest & WithDocumentName(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetParameters() const
StartSessionRequest & AddParameters(const Aws::String &key, const Aws::Vector< Aws::String > &value)
const Aws::String & GetDocumentName() const
StartSessionRequest & WithTarget(Aws::String &&value)
StartSessionRequest & AddParameters(const Aws::String &key, Aws::Vector< Aws::String > &&value)
StartSessionRequest & WithTarget(const Aws::String &value)
StartSessionRequest & WithReason(const char *value)
StartSessionRequest & AddParameters(const char *key, Aws::Vector< Aws::String > &&value)
void SetParameters(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector