AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
DelegatedAdmin.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/RelationshipStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Inspector2 {
21namespace Model {
22
30 public:
31 AWS_INSPECTOR2_API DelegatedAdmin() = default;
32 AWS_INSPECTOR2_API DelegatedAdmin(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR2_API DelegatedAdmin& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 DelegatedAdmin& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline RelationshipStatus GetRelationshipStatus() const { return m_relationshipStatus; }
60 inline bool RelationshipStatusHasBeenSet() const { return m_relationshipStatusHasBeenSet; }
62 m_relationshipStatusHasBeenSet = true;
63 m_relationshipStatus = value;
64 }
67 return *this;
68 }
70 private:
71 Aws::String m_accountId;
72
74 bool m_accountIdHasBeenSet = false;
75 bool m_relationshipStatusHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Inspector2
80} // namespace Aws
void SetAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API DelegatedAdmin & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
AWS_INSPECTOR2_API DelegatedAdmin(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API DelegatedAdmin()=default
DelegatedAdmin & WithRelationshipStatus(RelationshipStatus value)
void SetRelationshipStatus(RelationshipStatus value)
RelationshipStatus GetRelationshipStatus() const
DelegatedAdmin & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue