AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
PrivateConnectionMode.h
1
6#pragma once
7#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
8#include <aws/devops-agent/model/SelfManagedInput.h>
9#include <aws/devops-agent/model/ServiceManagedInput.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DevOpsAgent {
21namespace Model {
22
30 public:
31 AWS_DEVOPSAGENT_API PrivateConnectionMode() = default;
32 AWS_DEVOPSAGENT_API PrivateConnectionMode(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const ServiceManagedInput& GetServiceManaged() const { return m_serviceManaged; }
41 inline bool ServiceManagedHasBeenSet() const { return m_serviceManagedHasBeenSet; }
42 template <typename ServiceManagedT = ServiceManagedInput>
43 void SetServiceManaged(ServiceManagedT&& value) {
44 m_serviceManagedHasBeenSet = true;
45 m_serviceManaged = std::forward<ServiceManagedT>(value);
46 }
47 template <typename ServiceManagedT = ServiceManagedInput>
48 PrivateConnectionMode& WithServiceManaged(ServiceManagedT&& value) {
49 SetServiceManaged(std::forward<ServiceManagedT>(value));
50 return *this;
51 }
53
55
58 inline const SelfManagedInput& GetSelfManaged() const { return m_selfManaged; }
59 inline bool SelfManagedHasBeenSet() const { return m_selfManagedHasBeenSet; }
60 template <typename SelfManagedT = SelfManagedInput>
61 void SetSelfManaged(SelfManagedT&& value) {
62 m_selfManagedHasBeenSet = true;
63 m_selfManaged = std::forward<SelfManagedT>(value);
64 }
65 template <typename SelfManagedT = SelfManagedInput>
66 PrivateConnectionMode& WithSelfManaged(SelfManagedT&& value) {
67 SetSelfManaged(std::forward<SelfManagedT>(value));
68 return *this;
69 }
71 private:
72 ServiceManagedInput m_serviceManaged;
73
74 SelfManagedInput m_selfManaged;
75 bool m_serviceManagedHasBeenSet = false;
76 bool m_selfManagedHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DevOpsAgent
81} // namespace Aws
AWS_DEVOPSAGENT_API PrivateConnectionMode()=default
PrivateConnectionMode & WithServiceManaged(ServiceManagedT &&value)
AWS_DEVOPSAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVOPSAGENT_API PrivateConnectionMode(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVOPSAGENT_API PrivateConnectionMode & operator=(Aws::Utils::Json::JsonView jsonValue)
PrivateConnectionMode & WithSelfManaged(SelfManagedT &&value)
const ServiceManagedInput & GetServiceManaged() const
Aws::Utils::Json::JsonValue JsonValue