AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProposedSegmentChange.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/networkmanager/model/Tag.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_NETWORKMANAGER_API ProposedSegmentChange() = default;
38 AWS_NETWORKMANAGER_API ProposedSegmentChange(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
48 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
49 template<typename TagsT = Aws::Vector<Tag>>
50 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
51 template<typename TagsT = Aws::Vector<Tag>>
52 ProposedSegmentChange& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
53 template<typename TagsT = Tag>
54 ProposedSegmentChange& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
56
58
61 inline int GetAttachmentPolicyRuleNumber() const { return m_attachmentPolicyRuleNumber; }
62 inline bool AttachmentPolicyRuleNumberHasBeenSet() const { return m_attachmentPolicyRuleNumberHasBeenSet; }
63 inline void SetAttachmentPolicyRuleNumber(int value) { m_attachmentPolicyRuleNumberHasBeenSet = true; m_attachmentPolicyRuleNumber = value; }
66
68
71 inline const Aws::String& GetSegmentName() const { return m_segmentName; }
72 inline bool SegmentNameHasBeenSet() const { return m_segmentNameHasBeenSet; }
73 template<typename SegmentNameT = Aws::String>
74 void SetSegmentName(SegmentNameT&& value) { m_segmentNameHasBeenSet = true; m_segmentName = std::forward<SegmentNameT>(value); }
75 template<typename SegmentNameT = Aws::String>
76 ProposedSegmentChange& WithSegmentName(SegmentNameT&& value) { SetSegmentName(std::forward<SegmentNameT>(value)); return *this;}
78 private:
79
80 Aws::Vector<Tag> m_tags;
81 bool m_tagsHasBeenSet = false;
82
83 int m_attachmentPolicyRuleNumber{0};
84 bool m_attachmentPolicyRuleNumberHasBeenSet = false;
85
86 Aws::String m_segmentName;
87 bool m_segmentNameHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace NetworkManager
92} // 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