AWS SDK for C++  1.9.103
AWS SDK for C++
InstanceTagNotificationAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Vector<Aws::String>& GetInstanceTagKeys() const{ return m_instanceTagKeys; }
48 
52  inline bool InstanceTagKeysHasBeenSet() const { return m_instanceTagKeysHasBeenSet; }
53 
57  inline void SetInstanceTagKeys(const Aws::Vector<Aws::String>& value) { m_instanceTagKeysHasBeenSet = true; m_instanceTagKeys = value; }
58 
62  inline void SetInstanceTagKeys(Aws::Vector<Aws::String>&& value) { m_instanceTagKeysHasBeenSet = true; m_instanceTagKeys = std::move(value); }
63 
67  inline InstanceTagNotificationAttribute& WithInstanceTagKeys(const Aws::Vector<Aws::String>& value) { SetInstanceTagKeys(value); return *this;}
68 
72  inline InstanceTagNotificationAttribute& WithInstanceTagKeys(Aws::Vector<Aws::String>&& value) { SetInstanceTagKeys(std::move(value)); return *this;}
73 
77  inline InstanceTagNotificationAttribute& AddInstanceTagKeys(const Aws::String& value) { m_instanceTagKeysHasBeenSet = true; m_instanceTagKeys.push_back(value); return *this; }
78 
82  inline InstanceTagNotificationAttribute& AddInstanceTagKeys(Aws::String&& value) { m_instanceTagKeysHasBeenSet = true; m_instanceTagKeys.push_back(std::move(value)); return *this; }
83 
87  inline InstanceTagNotificationAttribute& AddInstanceTagKeys(const char* value) { m_instanceTagKeysHasBeenSet = true; m_instanceTagKeys.push_back(value); return *this; }
88 
89 
95  inline bool GetIncludeAllTagsOfInstance() const{ return m_includeAllTagsOfInstance; }
96 
102  inline bool IncludeAllTagsOfInstanceHasBeenSet() const { return m_includeAllTagsOfInstanceHasBeenSet; }
103 
109  inline void SetIncludeAllTagsOfInstance(bool value) { m_includeAllTagsOfInstanceHasBeenSet = true; m_includeAllTagsOfInstance = value; }
110 
116  inline InstanceTagNotificationAttribute& WithIncludeAllTagsOfInstance(bool value) { SetIncludeAllTagsOfInstance(value); return *this;}
117 
118  private:
119 
120  Aws::Vector<Aws::String> m_instanceTagKeys;
121  bool m_instanceTagKeysHasBeenSet;
122 
123  bool m_includeAllTagsOfInstance;
124  bool m_includeAllTagsOfInstanceHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace EC2
129 } // namespace Aws
Aws::EC2::Model::InstanceTagNotificationAttribute::WithInstanceTagKeys
InstanceTagNotificationAttribute & WithInstanceTagKeys(Aws::Vector< Aws::String > &&value)
Definition: InstanceTagNotificationAttribute.h:72
Aws::EC2::Model::InstanceTagNotificationAttribute::WithInstanceTagKeys
InstanceTagNotificationAttribute & WithInstanceTagKeys(const Aws::Vector< Aws::String > &value)
Definition: InstanceTagNotificationAttribute.h:67
Aws::EC2::Model::InstanceTagNotificationAttribute::operator=
InstanceTagNotificationAttribute & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceTagNotificationAttribute::InstanceTagKeysHasBeenSet
bool InstanceTagKeysHasBeenSet() const
Definition: InstanceTagNotificationAttribute.h:52
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::InstanceTagNotificationAttribute::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::InstanceTagNotificationAttribute::SetInstanceTagKeys
void SetInstanceTagKeys(Aws::Vector< Aws::String > &&value)
Definition: InstanceTagNotificationAttribute.h:62
AWSStreamFwd.h
Aws::EC2::Model::InstanceTagNotificationAttribute::SetInstanceTagKeys
void SetInstanceTagKeys(const Aws::Vector< Aws::String > &value)
Definition: InstanceTagNotificationAttribute.h:57
Aws::EC2::Model::InstanceTagNotificationAttribute::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWSVector.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::InstanceTagNotificationAttribute::InstanceTagNotificationAttribute
InstanceTagNotificationAttribute(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::InstanceTagNotificationAttribute::WithIncludeAllTagsOfInstance
InstanceTagNotificationAttribute & WithIncludeAllTagsOfInstance(bool value)
Definition: InstanceTagNotificationAttribute.h:116
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::InstanceTagNotificationAttribute::InstanceTagNotificationAttribute
InstanceTagNotificationAttribute()
Aws::EC2::Model::InstanceTagNotificationAttribute::GetIncludeAllTagsOfInstance
bool GetIncludeAllTagsOfInstance() const
Definition: InstanceTagNotificationAttribute.h:95
Aws::EC2::Model::InstanceTagNotificationAttribute::AddInstanceTagKeys
InstanceTagNotificationAttribute & AddInstanceTagKeys(const Aws::String &value)
Definition: InstanceTagNotificationAttribute.h:77
AWSString.h
Aws::EC2::Model::InstanceTagNotificationAttribute
Definition: InstanceTagNotificationAttribute.h:34
Aws::EC2::Model::InstanceTagNotificationAttribute::GetInstanceTagKeys
const Aws::Vector< Aws::String > & GetInstanceTagKeys() const
Definition: InstanceTagNotificationAttribute.h:47
Aws::EC2::Model::InstanceTagNotificationAttribute::AddInstanceTagKeys
InstanceTagNotificationAttribute & AddInstanceTagKeys(const char *value)
Definition: InstanceTagNotificationAttribute.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::InstanceTagNotificationAttribute::IncludeAllTagsOfInstanceHasBeenSet
bool IncludeAllTagsOfInstanceHasBeenSet() const
Definition: InstanceTagNotificationAttribute.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::InstanceTagNotificationAttribute::SetIncludeAllTagsOfInstance
void SetIncludeAllTagsOfInstance(bool value)
Definition: InstanceTagNotificationAttribute.h:109
Aws::EC2::Model::InstanceTagNotificationAttribute::AddInstanceTagKeys
InstanceTagNotificationAttribute & AddInstanceTagKeys(Aws::String &&value)
Definition: InstanceTagNotificationAttribute.h:82
EC2_EXPORTS.h