AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Member.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/RelationshipStatus.h>
10#include <aws/core/utils/DateTime.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 Inspector2
24{
25namespace Model
26{
27
34 class Member
35 {
36 public:
37 AWS_INSPECTOR2_API Member();
38 AWS_INSPECTOR2_API Member(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Member& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline Member& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline Member& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline Member& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
62 inline const Aws::String& GetDelegatedAdminAccountId() const{ return m_delegatedAdminAccountId; }
63 inline bool DelegatedAdminAccountIdHasBeenSet() const { return m_delegatedAdminAccountIdHasBeenSet; }
64 inline void SetDelegatedAdminAccountId(const Aws::String& value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId = value; }
65 inline void SetDelegatedAdminAccountId(Aws::String&& value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId = std::move(value); }
66 inline void SetDelegatedAdminAccountId(const char* value) { m_delegatedAdminAccountIdHasBeenSet = true; m_delegatedAdminAccountId.assign(value); }
67 inline Member& WithDelegatedAdminAccountId(const Aws::String& value) { SetDelegatedAdminAccountId(value); return *this;}
68 inline Member& WithDelegatedAdminAccountId(Aws::String&& value) { SetDelegatedAdminAccountId(std::move(value)); return *this;}
69 inline Member& WithDelegatedAdminAccountId(const char* value) { SetDelegatedAdminAccountId(value); return *this;}
71
73
76 inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; }
77 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
78 inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
79 inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = std::move(value); }
80 inline Member& WithRelationshipStatus(const RelationshipStatus& value) { SetRelationshipStatus(value); return *this;}
81 inline Member& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
89 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
90 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
91 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
92 inline Member& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
93 inline Member& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_accountId;
98 bool m_accountIdHasBeenSet = false;
99
100 Aws::String m_delegatedAdminAccountId;
101 bool m_delegatedAdminAccountIdHasBeenSet = false;
102
103 RelationshipStatus m_relationshipStatus;
104 bool m_relationshipStatusHasBeenSet = false;
105
106 Aws::Utils::DateTime m_updatedAt;
107 bool m_updatedAtHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Inspector2
112} // namespace Aws
Member & WithRelationshipStatus(const RelationshipStatus &value)
Definition Member.h:80
void SetRelationshipStatus(RelationshipStatus &&value)
Definition Member.h:79
Member & WithUpdatedAt(Aws::Utils::DateTime &&value)
Definition Member.h:93
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Member.h:88
const Aws::String & GetDelegatedAdminAccountId() const
Definition Member.h:62
void SetAccountId(Aws::String &&value)
Definition Member.h:50
Member & WithDelegatedAdminAccountId(const Aws::String &value)
Definition Member.h:67
bool RelationshipStatusHasBeenSet() const
Definition Member.h:77
void SetDelegatedAdminAccountId(const char *value)
Definition Member.h:66
Member & WithDelegatedAdminAccountId(Aws::String &&value)
Definition Member.h:68
Member & WithAccountId(const Aws::String &value)
Definition Member.h:52
bool AccountIdHasBeenSet() const
Definition Member.h:48
void SetUpdatedAt(const Aws::Utils::DateTime &value)
Definition Member.h:90
Member & WithAccountId(const char *value)
Definition Member.h:54
const RelationshipStatus & GetRelationshipStatus() const
Definition Member.h:76
void SetDelegatedAdminAccountId(Aws::String &&value)
Definition Member.h:65
AWS_INSPECTOR2_API Member & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Member(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
Member & WithDelegatedAdminAccountId(const char *value)
Definition Member.h:69
bool DelegatedAdminAccountIdHasBeenSet() const
Definition Member.h:63
const Aws::String & GetAccountId() const
Definition Member.h:47
Member & WithUpdatedAt(const Aws::Utils::DateTime &value)
Definition Member.h:92
void SetRelationshipStatus(const RelationshipStatus &value)
Definition Member.h:78
void SetUpdatedAt(Aws::Utils::DateTime &&value)
Definition Member.h:91
bool UpdatedAtHasBeenSet() const
Definition Member.h:89
AWS_INSPECTOR2_API Member()
void SetAccountId(const char *value)
Definition Member.h:51
void SetDelegatedAdminAccountId(const Aws::String &value)
Definition Member.h:64
Member & WithRelationshipStatus(RelationshipStatus &&value)
Definition Member.h:81
void SetAccountId(const Aws::String &value)
Definition Member.h:49
Member & WithAccountId(Aws::String &&value)
Definition Member.h:53
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue