AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CustomerAgreement.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/directconnect/DirectConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DirectConnect {
20namespace Model {
21
28 public:
29 AWS_DIRECTCONNECT_API CustomerAgreement() = default;
30 AWS_DIRECTCONNECT_API CustomerAgreement(Aws::Utils::Json::JsonView jsonValue);
31 AWS_DIRECTCONNECT_API CustomerAgreement& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAgreementName() const { return m_agreementName; }
39 inline bool AgreementNameHasBeenSet() const { return m_agreementNameHasBeenSet; }
40 template <typename AgreementNameT = Aws::String>
41 void SetAgreementName(AgreementNameT&& value) {
42 m_agreementNameHasBeenSet = true;
43 m_agreementName = std::forward<AgreementNameT>(value);
44 }
45 template <typename AgreementNameT = Aws::String>
46 CustomerAgreement& WithAgreementName(AgreementNameT&& value) {
47 SetAgreementName(std::forward<AgreementNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetStatus() const { return m_status; }
58 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
59 template <typename StatusT = Aws::String>
60 void SetStatus(StatusT&& value) {
61 m_statusHasBeenSet = true;
62 m_status = std::forward<StatusT>(value);
63 }
64 template <typename StatusT = Aws::String>
65 CustomerAgreement& WithStatus(StatusT&& value) {
66 SetStatus(std::forward<StatusT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_agreementName;
72
73 Aws::String m_status;
74 bool m_agreementNameHasBeenSet = false;
75 bool m_statusHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace DirectConnect
80} // namespace Aws
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
CustomerAgreement & WithAgreementName(AgreementNameT &&value)
CustomerAgreement & WithStatus(StatusT &&value)
void SetAgreementName(AgreementNameT &&value)
AWS_DIRECTCONNECT_API CustomerAgreement()=default
AWS_DIRECTCONNECT_API CustomerAgreement(Aws::Utils::Json::JsonView jsonValue)
AWS_DIRECTCONNECT_API CustomerAgreement & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue