AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateEnvironmentConnectionRequest.h
1
6#pragma once
7#include <aws/assurance/AssuranceRequest.h>
8#include <aws/assurance/Assurance_EXPORTS.h>
9#include <aws/assurance/model/ConnectionProviderConfig.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Assurance {
16namespace Model {
17
21 public:
22 AWS_ASSURANCE_API CreateEnvironmentConnectionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironmentConnection"; }
29
30 AWS_ASSURANCE_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
39 inline bool EnvironmentArnHasBeenSet() const { return m_environmentArnHasBeenSet; }
40 template <typename EnvironmentArnT = Aws::String>
41 void SetEnvironmentArn(EnvironmentArnT&& value) {
42 m_environmentArnHasBeenSet = true;
43 m_environmentArn = std::forward<EnvironmentArnT>(value);
44 }
45 template <typename EnvironmentArnT = Aws::String>
47 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
48 return *this;
49 }
51
53
56 inline const ConnectionProviderConfig& GetProviderConfig() const { return m_providerConfig; }
57 inline bool ProviderConfigHasBeenSet() const { return m_providerConfigHasBeenSet; }
58 template <typename ProviderConfigT = ConnectionProviderConfig>
59 void SetProviderConfig(ProviderConfigT&& value) {
60 m_providerConfigHasBeenSet = true;
61 m_providerConfig = std::forward<ProviderConfigT>(value);
62 }
63 template <typename ProviderConfigT = ConnectionProviderConfig>
65 SetProviderConfig(std::forward<ProviderConfigT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_environmentArn;
71
72 ConnectionProviderConfig m_providerConfig;
73 bool m_environmentArnHasBeenSet = false;
74 bool m_providerConfigHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace Assurance
79} // namespace Aws
CreateEnvironmentConnectionRequest & WithProviderConfig(ProviderConfigT &&value)
AWS_ASSURANCE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ASSURANCE_API Aws::String SerializePayload() const override
CreateEnvironmentConnectionRequest & WithEnvironmentArn(EnvironmentArnT &&value)
AWS_ASSURANCE_API CreateEnvironmentConnectionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String