AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ApiAssociation.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AssociationStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
30 public:
31 AWS_APPSYNC_API ApiAssociation() = default;
32 AWS_APPSYNC_API ApiAssociation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetDomainName() const { return m_domainName; }
41 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
42 template <typename DomainNameT = Aws::String>
43 void SetDomainName(DomainNameT&& value) {
44 m_domainNameHasBeenSet = true;
45 m_domainName = std::forward<DomainNameT>(value);
46 }
47 template <typename DomainNameT = Aws::String>
48 ApiAssociation& WithDomainName(DomainNameT&& value) {
49 SetDomainName(std::forward<DomainNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetApiId() const { return m_apiId; }
59 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
60 template <typename ApiIdT = Aws::String>
61 void SetApiId(ApiIdT&& value) {
62 m_apiIdHasBeenSet = true;
63 m_apiId = std::forward<ApiIdT>(value);
64 }
65 template <typename ApiIdT = Aws::String>
66 ApiAssociation& WithApiId(ApiIdT&& value) {
67 SetApiId(std::forward<ApiIdT>(value));
68 return *this;
69 }
71
73
81 inline AssociationStatus GetAssociationStatus() const { return m_associationStatus; }
82 inline bool AssociationStatusHasBeenSet() const { return m_associationStatusHasBeenSet; }
84 m_associationStatusHasBeenSet = true;
85 m_associationStatus = value;
86 }
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDeploymentDetail() const { return m_deploymentDetail; }
98 inline bool DeploymentDetailHasBeenSet() const { return m_deploymentDetailHasBeenSet; }
99 template <typename DeploymentDetailT = Aws::String>
100 void SetDeploymentDetail(DeploymentDetailT&& value) {
101 m_deploymentDetailHasBeenSet = true;
102 m_deploymentDetail = std::forward<DeploymentDetailT>(value);
103 }
104 template <typename DeploymentDetailT = Aws::String>
105 ApiAssociation& WithDeploymentDetail(DeploymentDetailT&& value) {
106 SetDeploymentDetail(std::forward<DeploymentDetailT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_domainName;
112
113 Aws::String m_apiId;
114
116
117 Aws::String m_deploymentDetail;
118 bool m_domainNameHasBeenSet = false;
119 bool m_apiIdHasBeenSet = false;
120 bool m_associationStatusHasBeenSet = false;
121 bool m_deploymentDetailHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AppSync
126} // namespace Aws
AWS_APPSYNC_API ApiAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApiId() const
void SetDomainName(DomainNameT &&value)
AWS_APPSYNC_API ApiAssociation(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDeploymentDetail(DeploymentDetailT &&value)
ApiAssociation & WithAssociationStatus(AssociationStatus value)
const Aws::String & GetDeploymentDetail() const
ApiAssociation & WithDomainName(DomainNameT &&value)
const Aws::String & GetDomainName() const
ApiAssociation & WithDeploymentDetail(DeploymentDetailT &&value)
AWS_APPSYNC_API ApiAssociation()=default
ApiAssociation & WithApiId(ApiIdT &&value)
AssociationStatus GetAssociationStatus() const
void SetAssociationStatus(AssociationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue