AWS SDK for C++

AWS SDK for C++ Version 1.11.609

Loading...
Searching...
No Matches
VpcAttachmentOptions.h
1
6#pragma once
7#include <aws/osis/OSIS_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 OSIS
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_OSIS_API VpcAttachmentOptions() = default;
38
39
41
44 inline bool GetAttachToVpc() const { return m_attachToVpc; }
45 inline bool AttachToVpcHasBeenSet() const { return m_attachToVpcHasBeenSet; }
46 inline void SetAttachToVpc(bool value) { m_attachToVpcHasBeenSet = true; m_attachToVpc = value; }
47 inline VpcAttachmentOptions& WithAttachToVpc(bool value) { SetAttachToVpc(value); return *this;}
49
51
55 inline const Aws::String& GetCidrBlock() const { return m_cidrBlock; }
56 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
57 template<typename CidrBlockT = Aws::String>
58 void SetCidrBlock(CidrBlockT&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::forward<CidrBlockT>(value); }
59 template<typename CidrBlockT = Aws::String>
60 VpcAttachmentOptions& WithCidrBlock(CidrBlockT&& value) { SetCidrBlock(std::forward<CidrBlockT>(value)); return *this;}
62 private:
63
64 bool m_attachToVpc{false};
65 bool m_attachToVpcHasBeenSet = false;
66
67 Aws::String m_cidrBlock;
68 bool m_cidrBlockHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace OSIS
73} // namespace Aws
AWS_OSIS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcAttachmentOptions & WithCidrBlock(CidrBlockT &&value)
AWS_OSIS_API VpcAttachmentOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OSIS_API VpcAttachmentOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcAttachmentOptions & WithAttachToVpc(bool value)
AWS_OSIS_API VpcAttachmentOptions()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue