AWS SDK for C++  1.9.40
AWS SDK for C++
CreateConnectorDefinitionVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Greengrass
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CreateConnectorDefinitionVersion"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetAmznClientToken() const{ return m_amznClientToken; }
43 
47  inline bool AmznClientTokenHasBeenSet() const { return m_amznClientTokenHasBeenSet; }
48 
52  inline void SetAmznClientToken(const Aws::String& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = value; }
53 
57  inline void SetAmznClientToken(Aws::String&& value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken = std::move(value); }
58 
62  inline void SetAmznClientToken(const char* value) { m_amznClientTokenHasBeenSet = true; m_amznClientToken.assign(value); }
63 
67  inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(const Aws::String& value) { SetAmznClientToken(value); return *this;}
68 
72  inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(Aws::String&& value) { SetAmznClientToken(std::move(value)); return *this;}
73 
77  inline CreateConnectorDefinitionVersionRequest& WithAmznClientToken(const char* value) { SetAmznClientToken(value); return *this;}
78 
79 
83  inline const Aws::String& GetConnectorDefinitionId() const{ return m_connectorDefinitionId; }
84 
88  inline bool ConnectorDefinitionIdHasBeenSet() const { return m_connectorDefinitionIdHasBeenSet; }
89 
93  inline void SetConnectorDefinitionId(const Aws::String& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = value; }
94 
98  inline void SetConnectorDefinitionId(Aws::String&& value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId = std::move(value); }
99 
103  inline void SetConnectorDefinitionId(const char* value) { m_connectorDefinitionIdHasBeenSet = true; m_connectorDefinitionId.assign(value); }
104 
108  inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(const Aws::String& value) { SetConnectorDefinitionId(value); return *this;}
109 
113  inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(Aws::String&& value) { SetConnectorDefinitionId(std::move(value)); return *this;}
114 
118  inline CreateConnectorDefinitionVersionRequest& WithConnectorDefinitionId(const char* value) { SetConnectorDefinitionId(value); return *this;}
119 
120 
125  inline const Aws::Vector<Connector>& GetConnectors() const{ return m_connectors; }
126 
131  inline bool ConnectorsHasBeenSet() const { return m_connectorsHasBeenSet; }
132 
137  inline void SetConnectors(const Aws::Vector<Connector>& value) { m_connectorsHasBeenSet = true; m_connectors = value; }
138 
143  inline void SetConnectors(Aws::Vector<Connector>&& value) { m_connectorsHasBeenSet = true; m_connectors = std::move(value); }
144 
149  inline CreateConnectorDefinitionVersionRequest& WithConnectors(const Aws::Vector<Connector>& value) { SetConnectors(value); return *this;}
150 
155  inline CreateConnectorDefinitionVersionRequest& WithConnectors(Aws::Vector<Connector>&& value) { SetConnectors(std::move(value)); return *this;}
156 
161  inline CreateConnectorDefinitionVersionRequest& AddConnectors(const Connector& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(value); return *this; }
162 
167  inline CreateConnectorDefinitionVersionRequest& AddConnectors(Connector&& value) { m_connectorsHasBeenSet = true; m_connectors.push_back(std::move(value)); return *this; }
168 
169  private:
170 
171  Aws::String m_amznClientToken;
172  bool m_amznClientTokenHasBeenSet;
173 
174  Aws::String m_connectorDefinitionId;
175  bool m_connectorDefinitionIdHasBeenSet;
176 
177  Aws::Vector<Connector> m_connectors;
178  bool m_connectorsHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace Greengrass
183 } // namespace Aws
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetConnectorDefinitionId
void SetConnectorDefinitionId(const char *value)
Definition: CreateConnectorDefinitionVersionRequest.h:103
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::GetAmznClientToken
const Aws::String & GetAmznClientToken() const
Definition: CreateConnectorDefinitionVersionRequest.h:42
Greengrass_EXPORTS.h
AWS_GREENGRASS_API
#define AWS_GREENGRASS_API
Definition: Greengrass_EXPORTS.h:28
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::CreateConnectorDefinitionVersionRequest
CreateConnectorDefinitionVersionRequest()
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest
Definition: CreateConnectorDefinitionVersionRequest.h:24
Connector.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetConnectors
void SetConnectors(Aws::Vector< Connector > &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:143
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::AmznClientTokenHasBeenSet
bool AmznClientTokenHasBeenSet() const
Definition: CreateConnectorDefinitionVersionRequest.h:47
GreengrassRequest.h
AWSVector.h
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithAmznClientToken
CreateConnectorDefinitionVersionRequest & WithAmznClientToken(const char *value)
Definition: CreateConnectorDefinitionVersionRequest.h:77
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithConnectorDefinitionId
CreateConnectorDefinitionVersionRequest & WithConnectorDefinitionId(Aws::String &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:113
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::GetConnectors
const Aws::Vector< Connector > & GetConnectors() const
Definition: CreateConnectorDefinitionVersionRequest.h:125
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateConnectorDefinitionVersionRequest.h:32
Aws::Greengrass::Model::Connector
Definition: Connector.h:35
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetConnectorDefinitionId
void SetConnectorDefinitionId(const Aws::String &value)
Definition: CreateConnectorDefinitionVersionRequest.h:93
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithAmznClientToken
CreateConnectorDefinitionVersionRequest & WithAmznClientToken(Aws::String &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:72
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetConnectorDefinitionId
void SetConnectorDefinitionId(Aws::String &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:98
AWSString.h
Aws::Greengrass::GreengrassRequest
Definition: GreengrassRequest.h:17
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithConnectors
CreateConnectorDefinitionVersionRequest & WithConnectors(const Aws::Vector< Connector > &value)
Definition: CreateConnectorDefinitionVersionRequest.h:149
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::AddConnectors
CreateConnectorDefinitionVersionRequest & AddConnectors(const Connector &value)
Definition: CreateConnectorDefinitionVersionRequest.h:161
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithConnectorDefinitionId
CreateConnectorDefinitionVersionRequest & WithConnectorDefinitionId(const Aws::String &value)
Definition: CreateConnectorDefinitionVersionRequest.h:108
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(Aws::String &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:57
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::AddConnectors
CreateConnectorDefinitionVersionRequest & AddConnectors(Connector &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:167
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(const Aws::String &value)
Definition: CreateConnectorDefinitionVersionRequest.h:52
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetConnectors
void SetConnectors(const Aws::Vector< Connector > &value)
Definition: CreateConnectorDefinitionVersionRequest.h:137
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithConnectorDefinitionId
CreateConnectorDefinitionVersionRequest & WithConnectorDefinitionId(const char *value)
Definition: CreateConnectorDefinitionVersionRequest.h:118
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::GetConnectorDefinitionId
const Aws::String & GetConnectorDefinitionId() const
Definition: CreateConnectorDefinitionVersionRequest.h:83
Aws
Definition: AccessManagementClient.h:15
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::ConnectorsHasBeenSet
bool ConnectorsHasBeenSet() const
Definition: CreateConnectorDefinitionVersionRequest.h:131
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithConnectors
CreateConnectorDefinitionVersionRequest & WithConnectors(Aws::Vector< Connector > &&value)
Definition: CreateConnectorDefinitionVersionRequest.h:155
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::ConnectorDefinitionIdHasBeenSet
bool ConnectorDefinitionIdHasBeenSet() const
Definition: CreateConnectorDefinitionVersionRequest.h:88
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::WithAmznClientToken
CreateConnectorDefinitionVersionRequest & WithAmznClientToken(const Aws::String &value)
Definition: CreateConnectorDefinitionVersionRequest.h:67
Aws::Greengrass::Model::CreateConnectorDefinitionVersionRequest::SetAmznClientToken
void SetAmznClientToken(const char *value)
Definition: CreateConnectorDefinitionVersionRequest.h:62