AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
FreeTrialAccountInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/Inspector2_EXPORTS.h>
10#include <aws/inspector2/model/FreeTrialInfo.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
31 public:
32 AWS_INSPECTOR2_API FreeTrialAccountInfo() = default;
33 AWS_INSPECTOR2_API FreeTrialAccountInfo(Aws::Utils::Json::JsonView jsonValue);
35 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
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 FreeTrialAccountInfo& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<FreeTrialInfo>& GetFreeTrialInfo() const { return m_freeTrialInfo; }
61 inline bool FreeTrialInfoHasBeenSet() const { return m_freeTrialInfoHasBeenSet; }
62 template <typename FreeTrialInfoT = Aws::Vector<FreeTrialInfo>>
63 void SetFreeTrialInfo(FreeTrialInfoT&& value) {
64 m_freeTrialInfoHasBeenSet = true;
65 m_freeTrialInfo = std::forward<FreeTrialInfoT>(value);
66 }
67 template <typename FreeTrialInfoT = Aws::Vector<FreeTrialInfo>>
68 FreeTrialAccountInfo& WithFreeTrialInfo(FreeTrialInfoT&& value) {
69 SetFreeTrialInfo(std::forward<FreeTrialInfoT>(value));
70 return *this;
71 }
72 template <typename FreeTrialInfoT = FreeTrialInfo>
73 FreeTrialAccountInfo& AddFreeTrialInfo(FreeTrialInfoT&& value) {
74 m_freeTrialInfoHasBeenSet = true;
75 m_freeTrialInfo.emplace_back(std::forward<FreeTrialInfoT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_accountId;
81
82 Aws::Vector<FreeTrialInfo> m_freeTrialInfo;
83 bool m_accountIdHasBeenSet = false;
84 bool m_freeTrialInfoHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace Inspector2
89} // namespace Aws
FreeTrialAccountInfo & AddFreeTrialInfo(FreeTrialInfoT &&value)
AWS_INSPECTOR2_API FreeTrialAccountInfo()=default
AWS_INSPECTOR2_API FreeTrialAccountInfo(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< FreeTrialInfo > & GetFreeTrialInfo() const
FreeTrialAccountInfo & WithFreeTrialInfo(FreeTrialInfoT &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
FreeTrialAccountInfo & WithAccountId(AccountIdT &&value)
AWS_INSPECTOR2_API FreeTrialAccountInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue