AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutGraphqlApiEnvironmentVariablesRequest.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/AppSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AppSync
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_APPSYNC_API PutGraphqlApiEnvironmentVariablesRequest() = 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 "PutGraphqlApiEnvironmentVariables"; }
32
33 AWS_APPSYNC_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetApiId() const { return m_apiId; }
42 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
43 template<typename ApiIdT = Aws::String>
44 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
45 template<typename ApiIdT = Aws::String>
46 PutGraphqlApiEnvironmentVariablesRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
48
50
67 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
68 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
69 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
70 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
71 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
72 PutGraphqlApiEnvironmentVariablesRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
73 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
74 PutGraphqlApiEnvironmentVariablesRequest& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
75 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
76 }
78 private:
79
80 Aws::String m_apiId;
81 bool m_apiIdHasBeenSet = false;
82
83 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
84 bool m_environmentVariablesHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace AppSync
89} // namespace Aws
PutGraphqlApiEnvironmentVariablesRequest & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
PutGraphqlApiEnvironmentVariablesRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_APPSYNC_API Aws::String SerializePayload() const override
PutGraphqlApiEnvironmentVariablesRequest & WithApiId(ApiIdT &&value)
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