AWS SDK for C++

AWS SDK for C++ Version 1.11.855

Loading...
Searching...
No Matches
CloudDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/CloudProvider.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API CloudDetails() = default;
32 AWS_GUARDDUTY_API CloudDetails(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API CloudDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline CloudProvider GetProvider() const { return m_provider; }
41 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
42 inline void SetProvider(CloudProvider value) {
43 m_providerHasBeenSet = true;
44 m_provider = value;
45 }
47 SetProvider(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetRegion() const { return m_region; }
58 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
59 template <typename RegionT = Aws::String>
60 void SetRegion(RegionT&& value) {
61 m_regionHasBeenSet = true;
62 m_region = std::forward<RegionT>(value);
63 }
64 template <typename RegionT = Aws::String>
65 CloudDetails& WithRegion(RegionT&& value) {
66 SetRegion(std::forward<RegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAccount() const { return m_account; }
76 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
77 template <typename AccountT = Aws::String>
78 void SetAccount(AccountT&& value) {
79 m_accountHasBeenSet = true;
80 m_account = std::forward<AccountT>(value);
81 }
82 template <typename AccountT = Aws::String>
83 CloudDetails& WithAccount(AccountT&& value) {
84 SetAccount(std::forward<AccountT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_region;
92
93 Aws::String m_account;
94 bool m_providerHasBeenSet = false;
95 bool m_regionHasBeenSet = false;
96 bool m_accountHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace GuardDuty
101} // namespace Aws
AWS_GUARDDUTY_API CloudDetails()=default
CloudDetails & WithProvider(CloudProvider value)
const Aws::String & GetRegion() const
CloudDetails & WithRegion(RegionT &&value)
void SetProvider(CloudProvider value)
void SetAccount(AccountT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRegion(RegionT &&value)
CloudDetails & WithAccount(AccountT &&value)
CloudProvider GetProvider() const
const Aws::String & GetAccount() const
AWS_GUARDDUTY_API CloudDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API CloudDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue