AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceInfo.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeDeploy
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_CODEDEPLOY_API InstanceInfo();
38 AWS_CODEDEPLOY_API InstanceInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API InstanceInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
48 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
49 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
50 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
51 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
52 inline InstanceInfo& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
53 inline InstanceInfo& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
54 inline InstanceInfo& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
56
58
61 inline const Aws::String& GetIamSessionArn() const{ return m_iamSessionArn; }
62 inline bool IamSessionArnHasBeenSet() const { return m_iamSessionArnHasBeenSet; }
63 inline void SetIamSessionArn(const Aws::String& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = value; }
64 inline void SetIamSessionArn(Aws::String&& value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn = std::move(value); }
65 inline void SetIamSessionArn(const char* value) { m_iamSessionArnHasBeenSet = true; m_iamSessionArn.assign(value); }
66 inline InstanceInfo& WithIamSessionArn(const Aws::String& value) { SetIamSessionArn(value); return *this;}
67 inline InstanceInfo& WithIamSessionArn(Aws::String&& value) { SetIamSessionArn(std::move(value)); return *this;}
68 inline InstanceInfo& WithIamSessionArn(const char* value) { SetIamSessionArn(value); return *this;}
70
72
75 inline const Aws::String& GetIamUserArn() const{ return m_iamUserArn; }
76 inline bool IamUserArnHasBeenSet() const { return m_iamUserArnHasBeenSet; }
77 inline void SetIamUserArn(const Aws::String& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = value; }
78 inline void SetIamUserArn(Aws::String&& value) { m_iamUserArnHasBeenSet = true; m_iamUserArn = std::move(value); }
79 inline void SetIamUserArn(const char* value) { m_iamUserArnHasBeenSet = true; m_iamUserArn.assign(value); }
80 inline InstanceInfo& WithIamUserArn(const Aws::String& value) { SetIamUserArn(value); return *this;}
81 inline InstanceInfo& WithIamUserArn(Aws::String&& value) { SetIamUserArn(std::move(value)); return *this;}
82 inline InstanceInfo& WithIamUserArn(const char* value) { SetIamUserArn(value); return *this;}
84
86
89 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
90 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
91 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
92 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
93 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
94 inline InstanceInfo& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
95 inline InstanceInfo& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
96 inline InstanceInfo& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
98
100
103 inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; }
104 inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; }
105 inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; }
106 inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); }
107 inline InstanceInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;}
108 inline InstanceInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;}
110
112
116 inline const Aws::Utils::DateTime& GetDeregisterTime() const{ return m_deregisterTime; }
117 inline bool DeregisterTimeHasBeenSet() const { return m_deregisterTimeHasBeenSet; }
118 inline void SetDeregisterTime(const Aws::Utils::DateTime& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = value; }
119 inline void SetDeregisterTime(Aws::Utils::DateTime&& value) { m_deregisterTimeHasBeenSet = true; m_deregisterTime = std::move(value); }
120 inline InstanceInfo& WithDeregisterTime(const Aws::Utils::DateTime& value) { SetDeregisterTime(value); return *this;}
121 inline InstanceInfo& WithDeregisterTime(Aws::Utils::DateTime&& value) { SetDeregisterTime(std::move(value)); return *this;}
123
125
128 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
131 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
132 inline InstanceInfo& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
133 inline InstanceInfo& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
134 inline InstanceInfo& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
135 inline InstanceInfo& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
137 private:
138
139 Aws::String m_instanceName;
140 bool m_instanceNameHasBeenSet = false;
141
142 Aws::String m_iamSessionArn;
143 bool m_iamSessionArnHasBeenSet = false;
144
145 Aws::String m_iamUserArn;
146 bool m_iamUserArnHasBeenSet = false;
147
148 Aws::String m_instanceArn;
149 bool m_instanceArnHasBeenSet = false;
150
151 Aws::Utils::DateTime m_registerTime;
152 bool m_registerTimeHasBeenSet = false;
153
154 Aws::Utils::DateTime m_deregisterTime;
155 bool m_deregisterTimeHasBeenSet = false;
156
157 Aws::Vector<Tag> m_tags;
158 bool m_tagsHasBeenSet = false;
159 };
160
161} // namespace Model
162} // namespace CodeDeploy
163} // namespace Aws
void SetIamSessionArn(const Aws::String &value)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceInfo & WithInstanceArn(const char *value)
InstanceInfo & WithInstanceName(const Aws::String &value)
InstanceInfo & WithIamSessionArn(Aws::String &&value)
AWS_CODEDEPLOY_API InstanceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceArn(const Aws::String &value)
const Aws::String & GetIamUserArn() const
InstanceInfo & WithTags(const Aws::Vector< Tag > &value)
AWS_CODEDEPLOY_API InstanceInfo(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceName(Aws::String &&value)
void SetInstanceArn(const char *value)
InstanceInfo & WithInstanceName(const char *value)
InstanceInfo & WithTags(Aws::Vector< Tag > &&value)
InstanceInfo & WithIamUserArn(const Aws::String &value)
void SetDeregisterTime(const Aws::Utils::DateTime &value)
const Aws::String & GetIamSessionArn() const
void SetTags(Aws::Vector< Tag > &&value)
InstanceInfo & WithRegisterTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetDeregisterTime() const
void SetIamSessionArn(Aws::String &&value)
const Aws::Utils::DateTime & GetRegisterTime() const
const Aws::String & GetInstanceArn() const
void SetTags(const Aws::Vector< Tag > &value)
void SetInstanceName(const Aws::String &value)
void SetRegisterTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Tag > & GetTags() const
void SetIamUserArn(Aws::String &&value)
void SetRegisterTime(Aws::Utils::DateTime &&value)
void SetInstanceArn(Aws::String &&value)
void SetIamUserArn(const Aws::String &value)
InstanceInfo & WithRegisterTime(const Aws::Utils::DateTime &value)
void SetIamUserArn(const char *value)
InstanceInfo & WithIamUserArn(const char *value)
InstanceInfo & WithIamUserArn(Aws::String &&value)
void SetInstanceName(const char *value)
void SetIamSessionArn(const char *value)
InstanceInfo & WithDeregisterTime(const Aws::Utils::DateTime &value)
InstanceInfo & AddTags(const Tag &value)
InstanceInfo & WithInstanceArn(const Aws::String &value)
InstanceInfo & WithIamSessionArn(const Aws::String &value)
InstanceInfo & WithDeregisterTime(Aws::Utils::DateTime &&value)
InstanceInfo & WithIamSessionArn(const char *value)
const Aws::String & GetInstanceName() const
InstanceInfo & WithInstanceName(Aws::String &&value)
InstanceInfo & WithInstanceArn(Aws::String &&value)
void SetDeregisterTime(Aws::Utils::DateTime &&value)
InstanceInfo & AddTags(Tag &&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