AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
NetworkConfiguration.h
1
6#pragma once
7#include <aws/apprunner/AppRunner_EXPORTS.h>
8#include <aws/apprunner/model/EgressConfiguration.h>
9#include <aws/apprunner/model/IngressConfiguration.h>
10#include <aws/apprunner/model/IpAddressType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppRunner {
22namespace Model {
23
32 public:
33 AWS_APPRUNNER_API NetworkConfiguration() = default;
36 AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const EgressConfiguration& GetEgressConfiguration() const { return m_egressConfiguration; }
43 inline bool EgressConfigurationHasBeenSet() const { return m_egressConfigurationHasBeenSet; }
44 template <typename EgressConfigurationT = EgressConfiguration>
45 void SetEgressConfiguration(EgressConfigurationT&& value) {
46 m_egressConfigurationHasBeenSet = true;
47 m_egressConfiguration = std::forward<EgressConfigurationT>(value);
48 }
49 template <typename EgressConfigurationT = EgressConfiguration>
50 NetworkConfiguration& WithEgressConfiguration(EgressConfigurationT&& value) {
51 SetEgressConfiguration(std::forward<EgressConfigurationT>(value));
52 return *this;
53 }
55
57
60 inline const IngressConfiguration& GetIngressConfiguration() const { return m_ingressConfiguration; }
61 inline bool IngressConfigurationHasBeenSet() const { return m_ingressConfigurationHasBeenSet; }
62 template <typename IngressConfigurationT = IngressConfiguration>
63 void SetIngressConfiguration(IngressConfigurationT&& value) {
64 m_ingressConfigurationHasBeenSet = true;
65 m_ingressConfiguration = std::forward<IngressConfigurationT>(value);
66 }
67 template <typename IngressConfigurationT = IngressConfiguration>
68 NetworkConfiguration& WithIngressConfiguration(IngressConfigurationT&& value) {
69 SetIngressConfiguration(std::forward<IngressConfigurationT>(value));
70 return *this;
71 }
73
75
80 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
81 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
82 inline void SetIpAddressType(IpAddressType value) {
83 m_ipAddressTypeHasBeenSet = true;
84 m_ipAddressType = value;
85 }
87 SetIpAddressType(value);
88 return *this;
89 }
91 private:
92 EgressConfiguration m_egressConfiguration;
93
94 IngressConfiguration m_ingressConfiguration;
95
97 bool m_egressConfigurationHasBeenSet = false;
98 bool m_ingressConfigurationHasBeenSet = false;
99 bool m_ipAddressTypeHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace AppRunner
104} // namespace Aws
const IngressConfiguration & GetIngressConfiguration() const
AWS_APPRUNNER_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkConfiguration & WithIpAddressType(IpAddressType value)
AWS_APPRUNNER_API NetworkConfiguration()=default
NetworkConfiguration & WithEgressConfiguration(EgressConfigurationT &&value)
void SetIngressConfiguration(IngressConfigurationT &&value)
NetworkConfiguration & WithIngressConfiguration(IngressConfigurationT &&value)
AWS_APPRUNNER_API NetworkConfiguration(Aws::Utils::Json::JsonView jsonValue)
const EgressConfiguration & GetEgressConfiguration() const
void SetEgressConfiguration(EgressConfigurationT &&value)
AWS_APPRUNNER_API NetworkConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue