AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
CrossAccountResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlobalAccelerator {
20namespace Model {
21
34 public:
35 AWS_GLOBALACCELERATOR_API CrossAccountResource() = default;
36 AWS_GLOBALACCELERATOR_API CrossAccountResource(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLOBALACCELERATOR_API CrossAccountResource& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
46 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
47 template <typename EndpointIdT = Aws::String>
48 void SetEndpointId(EndpointIdT&& value) {
49 m_endpointIdHasBeenSet = true;
50 m_endpointId = std::forward<EndpointIdT>(value);
51 }
52 template <typename EndpointIdT = Aws::String>
53 CrossAccountResource& WithEndpointId(EndpointIdT&& value) {
54 SetEndpointId(std::forward<EndpointIdT>(value));
55 return *this;
56 }
58
60
68 inline const Aws::String& GetCidr() const { return m_cidr; }
69 inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
70 template <typename CidrT = Aws::String>
71 void SetCidr(CidrT&& value) {
72 m_cidrHasBeenSet = true;
73 m_cidr = std::forward<CidrT>(value);
74 }
75 template <typename CidrT = Aws::String>
77 SetCidr(std::forward<CidrT>(value));
78 return *this;
79 }
81
83
88 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
89 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
90 template <typename AttachmentArnT = Aws::String>
91 void SetAttachmentArn(AttachmentArnT&& value) {
92 m_attachmentArnHasBeenSet = true;
93 m_attachmentArn = std::forward<AttachmentArnT>(value);
94 }
95 template <typename AttachmentArnT = Aws::String>
96 CrossAccountResource& WithAttachmentArn(AttachmentArnT&& value) {
97 SetAttachmentArn(std::forward<AttachmentArnT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_endpointId;
103
104 Aws::String m_cidr;
105
106 Aws::String m_attachmentArn;
107 bool m_endpointIdHasBeenSet = false;
108 bool m_cidrHasBeenSet = false;
109 bool m_attachmentArnHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace GlobalAccelerator
114} // namespace Aws
AWS_GLOBALACCELERATOR_API CrossAccountResource()=default
AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const
CrossAccountResource & WithEndpointId(EndpointIdT &&value)
AWS_GLOBALACCELERATOR_API CrossAccountResource(Aws::Utils::Json::JsonView jsonValue)
AWS_GLOBALACCELERATOR_API CrossAccountResource & operator=(Aws::Utils::Json::JsonView jsonValue)
CrossAccountResource & WithAttachmentArn(AttachmentArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue