AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CrossAccountResource.h
1
6#pragma once
7#include <aws/globalaccelerator/GlobalAccelerator_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlobalAccelerator
22{
23namespace Model
24{
25
38 {
39 public:
40 AWS_GLOBALACCELERATOR_API CrossAccountResource() = default;
41 AWS_GLOBALACCELERATOR_API CrossAccountResource(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GLOBALACCELERATOR_API CrossAccountResource& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_GLOBALACCELERATOR_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Aws::String& GetEndpointId() const { return m_endpointId; }
52 inline bool EndpointIdHasBeenSet() const { return m_endpointIdHasBeenSet; }
53 template<typename EndpointIdT = Aws::String>
54 void SetEndpointId(EndpointIdT&& value) { m_endpointIdHasBeenSet = true; m_endpointId = std::forward<EndpointIdT>(value); }
55 template<typename EndpointIdT = Aws::String>
56 CrossAccountResource& WithEndpointId(EndpointIdT&& value) { SetEndpointId(std::forward<EndpointIdT>(value)); return *this;}
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) { m_cidrHasBeenSet = true; m_cidr = std::forward<CidrT>(value); }
72 template<typename CidrT = Aws::String>
73 CrossAccountResource& WithCidr(CidrT&& value) { SetCidr(std::forward<CidrT>(value)); return *this;}
75
77
82 inline const Aws::String& GetAttachmentArn() const { return m_attachmentArn; }
83 inline bool AttachmentArnHasBeenSet() const { return m_attachmentArnHasBeenSet; }
84 template<typename AttachmentArnT = Aws::String>
85 void SetAttachmentArn(AttachmentArnT&& value) { m_attachmentArnHasBeenSet = true; m_attachmentArn = std::forward<AttachmentArnT>(value); }
86 template<typename AttachmentArnT = Aws::String>
87 CrossAccountResource& WithAttachmentArn(AttachmentArnT&& value) { SetAttachmentArn(std::forward<AttachmentArnT>(value)); return *this;}
89 private:
90
91 Aws::String m_endpointId;
92 bool m_endpointIdHasBeenSet = false;
93
94 Aws::String m_cidr;
95 bool m_cidrHasBeenSet = false;
96
97 Aws::String m_attachmentArn;
98 bool m_attachmentArnHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace GlobalAccelerator
103} // 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