AWS SDK for C++

AWS SDK for C++ Version 1.11.711

Loading...
Searching...
No Matches
BlockingInstance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/AWSServiceName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
30 public:
31 AWS_OUTPOSTS_API BlockingInstance() = default;
32 AWS_OUTPOSTS_API BlockingInstance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
41 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
42 template <typename InstanceIdT = Aws::String>
43 void SetInstanceId(InstanceIdT&& value) {
44 m_instanceIdHasBeenSet = true;
45 m_instanceId = std::forward<InstanceIdT>(value);
46 }
47 template <typename InstanceIdT = Aws::String>
48 BlockingInstance& WithInstanceId(InstanceIdT&& value) {
49 SetInstanceId(std::forward<InstanceIdT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetAccountId() const { return m_accountId; }
57 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
58 template <typename AccountIdT = Aws::String>
59 void SetAccountId(AccountIdT&& value) {
60 m_accountIdHasBeenSet = true;
61 m_accountId = std::forward<AccountIdT>(value);
62 }
63 template <typename AccountIdT = Aws::String>
64 BlockingInstance& WithAccountId(AccountIdT&& value) {
65 SetAccountId(std::forward<AccountIdT>(value));
66 return *this;
67 }
69
71
75 inline AWSServiceName GetAwsServiceName() const { return m_awsServiceName; }
76 inline bool AwsServiceNameHasBeenSet() const { return m_awsServiceNameHasBeenSet; }
77 inline void SetAwsServiceName(AWSServiceName value) {
78 m_awsServiceNameHasBeenSet = true;
79 m_awsServiceName = value;
80 }
82 SetAwsServiceName(value);
83 return *this;
84 }
86 private:
87 Aws::String m_instanceId;
88
89 Aws::String m_accountId;
90
92 bool m_instanceIdHasBeenSet = false;
93 bool m_accountIdHasBeenSet = false;
94 bool m_awsServiceNameHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Outposts
99} // namespace Aws
const Aws::String & GetAccountId() const
BlockingInstance & WithAwsServiceName(AWSServiceName value)
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAwsServiceName(AWSServiceName value)
AWS_OUTPOSTS_API BlockingInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceId(InstanceIdT &&value)
AWS_OUTPOSTS_API BlockingInstance()=default
BlockingInstance & WithAccountId(AccountIdT &&value)
const Aws::String & GetInstanceId() const
BlockingInstance & WithInstanceId(InstanceIdT &&value)
AWS_OUTPOSTS_API BlockingInstance(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue