AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DelegatedAdmin.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_INSPECTOR2_API DelegatedAdmin();
37 AWS_INSPECTOR2_API DelegatedAdmin(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API DelegatedAdmin& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
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 DelegatedAdmin& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline DelegatedAdmin& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline DelegatedAdmin& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const RelationshipStatus& GetRelationshipStatus() const{ return m_relationshipStatus; }
62 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
63 inline void SetRelationshipStatus(const RelationshipStatus& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = value; }
64 inline void SetRelationshipStatus(RelationshipStatus&& value) { m_relationshipStatusHasBeenSet = true; m_relationshipStatus = std::move(value); }
66 inline DelegatedAdmin& WithRelationshipStatus(RelationshipStatus&& value) { SetRelationshipStatus(std::move(value)); return *this;}
68 private:
69
70 Aws::String m_accountId;
71 bool m_accountIdHasBeenSet = false;
72
73 RelationshipStatus m_relationshipStatus;
74 bool m_relationshipStatusHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Inspector2
79} // namespace Aws
void SetRelationshipStatus(const RelationshipStatus &value)
DelegatedAdmin & WithAccountId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
AWS_INSPECTOR2_API DelegatedAdmin & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelationshipStatus(RelationshipStatus &&value)
const Aws::String & GetAccountId() const
DelegatedAdmin & WithAccountId(const char *value)
AWS_INSPECTOR2_API DelegatedAdmin(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(Aws::String &&value)
DelegatedAdmin & WithAccountId(Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
DelegatedAdmin & WithRelationshipStatus(RelationshipStatus &&value)
const RelationshipStatus & GetRelationshipStatus() const
DelegatedAdmin & WithRelationshipStatus(const RelationshipStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue