AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ProposedSegmentChange.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/networkmanager/NetworkManager_EXPORTS.h>
10#include <aws/networkmanager/model/Tag.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NetworkManager {
22namespace Model {
23
31 public:
32 AWS_NETWORKMANAGER_API ProposedSegmentChange() = default;
33 AWS_NETWORKMANAGER_API ProposedSegmentChange(Aws::Utils::Json::JsonView jsonValue);
35 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
42 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
43 template <typename TagsT = Aws::Vector<Tag>>
44 void SetTags(TagsT&& value) {
45 m_tagsHasBeenSet = true;
46 m_tags = std::forward<TagsT>(value);
47 }
48 template <typename TagsT = Aws::Vector<Tag>>
50 SetTags(std::forward<TagsT>(value));
51 return *this;
52 }
53 template <typename TagsT = Tag>
55 m_tagsHasBeenSet = true;
56 m_tags.emplace_back(std::forward<TagsT>(value));
57 return *this;
58 }
60
62
65 inline int GetAttachmentPolicyRuleNumber() const { return m_attachmentPolicyRuleNumber; }
66 inline bool AttachmentPolicyRuleNumberHasBeenSet() const { return m_attachmentPolicyRuleNumberHasBeenSet; }
67 inline void SetAttachmentPolicyRuleNumber(int value) {
68 m_attachmentPolicyRuleNumberHasBeenSet = true;
69 m_attachmentPolicyRuleNumber = value;
70 }
73 return *this;
74 }
76
78
81 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
82 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
83 template <typename SegmentNameT = Aws::String>
84 void SetSegmentName(SegmentNameT&& value) {
85 m_segmentNameHasBeenSet = true;
86 m_segmentName = std::forward<SegmentNameT>(value);
87 }
88 template <typename SegmentNameT = Aws::String>
89 ProposedSegmentChange& WithSegmentName(SegmentNameT&& value) {
90 SetSegmentName(std::forward<SegmentNameT>(value));
91 return *this;
92 }
94 private:
95 Aws::Vector<Tag> m_tags;
96
97 int m_attachmentPolicyRuleNumber{0};
98
99 Aws::String m_segmentName;
100 bool m_tagsHasBeenSet = false;
101 bool m_attachmentPolicyRuleNumberHasBeenSet = false;
102 bool m_segmentNameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace NetworkManager
107} // namespace Aws
AWS_NETWORKMANAGER_API ProposedSegmentChange(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API ProposedSegmentChange & operator=(Aws::Utils::Json::JsonView jsonValue)
ProposedSegmentChange & WithSegmentName(SegmentNameT &&value)
ProposedSegmentChange & AddTags(TagsT &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API ProposedSegmentChange()=default
ProposedSegmentChange & WithAttachmentPolicyRuleNumber(int value)
ProposedSegmentChange & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue