AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceMetadata.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/InstanceStatus.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 SSOAdmin
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSOADMIN_API InstanceMetadata();
38 AWS_SSOADMIN_API InstanceMetadata(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
48 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
49 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
50 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
51 inline InstanceMetadata& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
52 inline InstanceMetadata& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
54
56
60 inline const Aws::String& GetIdentityStoreId() const{ return m_identityStoreId; }
61 inline bool IdentityStoreIdHasBeenSet() const { return m_identityStoreIdHasBeenSet; }
62 inline void SetIdentityStoreId(const Aws::String& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = value; }
63 inline void SetIdentityStoreId(Aws::String&& value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId = std::move(value); }
64 inline void SetIdentityStoreId(const char* value) { m_identityStoreIdHasBeenSet = true; m_identityStoreId.assign(value); }
65 inline InstanceMetadata& WithIdentityStoreId(const Aws::String& value) { SetIdentityStoreId(value); return *this;}
66 inline InstanceMetadata& WithIdentityStoreId(Aws::String&& value) { SetIdentityStoreId(std::move(value)); return *this;}
67 inline InstanceMetadata& WithIdentityStoreId(const char* value) { SetIdentityStoreId(value); return *this;}
69
71
78 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
79 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
80 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
81 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
82 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
83 inline InstanceMetadata& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
84 inline InstanceMetadata& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
85 inline InstanceMetadata& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
87
89
92 inline const Aws::String& GetName() const{ return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
96 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
97 inline InstanceMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
98 inline InstanceMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
99 inline InstanceMetadata& WithName(const char* value) { SetName(value); return *this;}
101
103
107 inline const Aws::String& GetOwnerAccountId() const{ return m_ownerAccountId; }
108 inline bool OwnerAccountIdHasBeenSet() const { return m_ownerAccountIdHasBeenSet; }
109 inline void SetOwnerAccountId(const Aws::String& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = value; }
110 inline void SetOwnerAccountId(Aws::String&& value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId = std::move(value); }
111 inline void SetOwnerAccountId(const char* value) { m_ownerAccountIdHasBeenSet = true; m_ownerAccountId.assign(value); }
112 inline InstanceMetadata& WithOwnerAccountId(const Aws::String& value) { SetOwnerAccountId(value); return *this;}
113 inline InstanceMetadata& WithOwnerAccountId(Aws::String&& value) { SetOwnerAccountId(std::move(value)); return *this;}
114 inline InstanceMetadata& WithOwnerAccountId(const char* value) { SetOwnerAccountId(value); return *this;}
116
118
121 inline const InstanceStatus& GetStatus() const{ return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
124 inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
125 inline InstanceMetadata& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
126 inline InstanceMetadata& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
128 private:
129
130 Aws::Utils::DateTime m_createdDate;
131 bool m_createdDateHasBeenSet = false;
132
133 Aws::String m_identityStoreId;
134 bool m_identityStoreIdHasBeenSet = false;
135
136 Aws::String m_instanceArn;
137 bool m_instanceArnHasBeenSet = false;
138
139 Aws::String m_name;
140 bool m_nameHasBeenSet = false;
141
142 Aws::String m_ownerAccountId;
143 bool m_ownerAccountIdHasBeenSet = false;
144
145 InstanceStatus m_status;
146 bool m_statusHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace SSOAdmin
151} // namespace Aws
InstanceMetadata & WithOwnerAccountId(const char *value)
void SetIdentityStoreId(const char *value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
InstanceMetadata & WithStatus(const InstanceStatus &value)
InstanceMetadata & WithName(const char *value)
InstanceMetadata & WithInstanceArn(const char *value)
void SetOwnerAccountId(Aws::String &&value)
InstanceMetadata & WithIdentityStoreId(Aws::String &&value)
InstanceMetadata & WithCreatedDate(const Aws::Utils::DateTime &value)
const Aws::String & GetInstanceArn() const
void SetOwnerAccountId(const Aws::String &value)
void SetInstanceArn(Aws::String &&value)
const Aws::String & GetOwnerAccountId() const
void SetCreatedDate(Aws::Utils::DateTime &&value)
InstanceMetadata & WithOwnerAccountId(const Aws::String &value)
InstanceMetadata & WithOwnerAccountId(Aws::String &&value)
void SetStatus(const InstanceStatus &value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetName() const
void SetName(const Aws::String &value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
InstanceMetadata & WithCreatedDate(Aws::Utils::DateTime &&value)
InstanceMetadata & WithInstanceArn(Aws::String &&value)
void SetIdentityStoreId(Aws::String &&value)
const Aws::String & GetIdentityStoreId() const
void SetInstanceArn(const Aws::String &value)
void SetIdentityStoreId(const Aws::String &value)
InstanceMetadata & WithIdentityStoreId(const Aws::String &value)
void SetStatus(InstanceStatus &&value)
InstanceMetadata & WithIdentityStoreId(const char *value)
AWS_SSOADMIN_API InstanceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadata & WithStatus(InstanceStatus &&value)
InstanceMetadata & WithInstanceArn(const Aws::String &value)
const InstanceStatus & GetStatus() const
AWS_SSOADMIN_API InstanceMetadata(Aws::Utils::Json::JsonView jsonValue)
InstanceMetadata & WithName(Aws::String &&value)
InstanceMetadata & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue