AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
50 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
51 inline ProposedSegmentChange& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
52 inline ProposedSegmentChange& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
53 inline ProposedSegmentChange& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
54 inline ProposedSegmentChange& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(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 inline void SetSegmentName(const Aws::String& value) { m_segmentNameHasBeenSet = true; m_segmentName = value; }
74 inline void SetSegmentName(Aws::String&& value) { m_segmentNameHasBeenSet = true; m_segmentName = std::move(value); }
75 inline void SetSegmentName(const char* value) { m_segmentNameHasBeenSet = true; m_segmentName.assign(value); }
76 inline ProposedSegmentChange& WithSegmentName(const Aws::String& value) { SetSegmentName(value); return *this;}
77 inline ProposedSegmentChange& WithSegmentName(Aws::String&& value) { SetSegmentName(std::move(value)); return *this;}
78 inline ProposedSegmentChange& WithSegmentName(const char* value) { SetSegmentName(value); return *this;}
80 private:
81
82 Aws::Vector<Tag> m_tags;
83 bool m_tagsHasBeenSet = false;
84
85 int m_attachmentPolicyRuleNumber;
86 bool m_attachmentPolicyRuleNumberHasBeenSet = false;
87
88 Aws::String m_segmentName;
89 bool m_segmentNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace NetworkManager
94} // namespace Aws
ProposedSegmentChange & WithSegmentName(const char *value)
ProposedSegmentChange & AddTags(const Tag &value)
AWS_NETWORKMANAGER_API ProposedSegmentChange(Aws::Utils::Json::JsonView jsonValue)
ProposedSegmentChange & WithSegmentName(const Aws::String &value)
ProposedSegmentChange & WithSegmentName(Aws::String &&value)
AWS_NETWORKMANAGER_API ProposedSegmentChange & operator=(Aws::Utils::Json::JsonView jsonValue)
ProposedSegmentChange & WithTags(const Aws::Vector< Tag > &value)
ProposedSegmentChange & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
ProposedSegmentChange & WithAttachmentPolicyRuleNumber(int 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