AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CidrBlockAssociation.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYHUB_API CidrBlockAssociation();
35 AWS_SECURITYHUB_API CidrBlockAssociation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
45 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
46 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
47 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
48 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
49 inline CidrBlockAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
50 inline CidrBlockAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
51 inline CidrBlockAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
53
55
58 inline const Aws::String& GetCidrBlock() const{ return m_cidrBlock; }
59 inline bool CidrBlockHasBeenSet() const { return m_cidrBlockHasBeenSet; }
60 inline void SetCidrBlock(const Aws::String& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = value; }
61 inline void SetCidrBlock(Aws::String&& value) { m_cidrBlockHasBeenSet = true; m_cidrBlock = std::move(value); }
62 inline void SetCidrBlock(const char* value) { m_cidrBlockHasBeenSet = true; m_cidrBlock.assign(value); }
63 inline CidrBlockAssociation& WithCidrBlock(const Aws::String& value) { SetCidrBlock(value); return *this;}
64 inline CidrBlockAssociation& WithCidrBlock(Aws::String&& value) { SetCidrBlock(std::move(value)); return *this;}
65 inline CidrBlockAssociation& WithCidrBlock(const char* value) { SetCidrBlock(value); return *this;}
67
69
72 inline const Aws::String& GetCidrBlockState() const{ return m_cidrBlockState; }
73 inline bool CidrBlockStateHasBeenSet() const { return m_cidrBlockStateHasBeenSet; }
74 inline void SetCidrBlockState(const Aws::String& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = value; }
75 inline void SetCidrBlockState(Aws::String&& value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState = std::move(value); }
76 inline void SetCidrBlockState(const char* value) { m_cidrBlockStateHasBeenSet = true; m_cidrBlockState.assign(value); }
77 inline CidrBlockAssociation& WithCidrBlockState(const Aws::String& value) { SetCidrBlockState(value); return *this;}
78 inline CidrBlockAssociation& WithCidrBlockState(Aws::String&& value) { SetCidrBlockState(std::move(value)); return *this;}
79 inline CidrBlockAssociation& WithCidrBlockState(const char* value) { SetCidrBlockState(value); return *this;}
81 private:
82
83 Aws::String m_associationId;
84 bool m_associationIdHasBeenSet = false;
85
86 Aws::String m_cidrBlock;
87 bool m_cidrBlockHasBeenSet = false;
88
89 Aws::String m_cidrBlockState;
90 bool m_cidrBlockStateHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SecurityHub
95} // namespace Aws
CidrBlockAssociation & WithAssociationId(const Aws::String &value)
CidrBlockAssociation & WithCidrBlock(Aws::String &&value)
CidrBlockAssociation & WithCidrBlockState(const char *value)
AWS_SECURITYHUB_API CidrBlockAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
CidrBlockAssociation & WithCidrBlockState(const Aws::String &value)
CidrBlockAssociation & WithCidrBlockState(Aws::String &&value)
CidrBlockAssociation & WithCidrBlock(const char *value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
CidrBlockAssociation & WithAssociationId(Aws::String &&value)
AWS_SECURITYHUB_API CidrBlockAssociation(Aws::Utils::Json::JsonView jsonValue)
CidrBlockAssociation & WithAssociationId(const char *value)
CidrBlockAssociation & WithCidrBlock(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue