AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SalesforceMetadata.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/appflow/model/OAuth2GrantType.h>
9#include <aws/appflow/model/SalesforceDataTransferApi.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Appflow {
23namespace Model {
24
32 public:
33 AWS_APPFLOW_API SalesforceMetadata() = default;
36 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetOAuthScopes() const { return m_oAuthScopes; }
43 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
44 template <typename OAuthScopesT = Aws::Vector<Aws::String>>
45 void SetOAuthScopes(OAuthScopesT&& value) {
46 m_oAuthScopesHasBeenSet = true;
47 m_oAuthScopes = std::forward<OAuthScopesT>(value);
48 }
49 template <typename OAuthScopesT = Aws::Vector<Aws::String>>
50 SalesforceMetadata& WithOAuthScopes(OAuthScopesT&& value) {
51 SetOAuthScopes(std::forward<OAuthScopesT>(value));
52 return *this;
53 }
54 template <typename OAuthScopesT = Aws::String>
55 SalesforceMetadata& AddOAuthScopes(OAuthScopesT&& value) {
56 m_oAuthScopesHasBeenSet = true;
57 m_oAuthScopes.emplace_back(std::forward<OAuthScopesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<SalesforceDataTransferApi>& GetDataTransferApis() const { return m_dataTransferApis; }
68 inline bool DataTransferApisHasBeenSet() const { return m_dataTransferApisHasBeenSet; }
69 template <typename DataTransferApisT = Aws::Vector<SalesforceDataTransferApi>>
70 void SetDataTransferApis(DataTransferApisT&& value) {
71 m_dataTransferApisHasBeenSet = true;
72 m_dataTransferApis = std::forward<DataTransferApisT>(value);
73 }
74 template <typename DataTransferApisT = Aws::Vector<SalesforceDataTransferApi>>
75 SalesforceMetadata& WithDataTransferApis(DataTransferApisT&& value) {
76 SetDataTransferApis(std::forward<DataTransferApisT>(value));
77 return *this;
78 }
80 m_dataTransferApisHasBeenSet = true;
81 m_dataTransferApis.push_back(value);
82 return *this;
83 }
85
87
102 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const { return m_oauth2GrantTypesSupported; }
103 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
104 template <typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
105 void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) {
106 m_oauth2GrantTypesSupportedHasBeenSet = true;
107 m_oauth2GrantTypesSupported = std::forward<Oauth2GrantTypesSupportedT>(value);
108 }
109 template <typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
110 SalesforceMetadata& WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) {
111 SetOauth2GrantTypesSupported(std::forward<Oauth2GrantTypesSupportedT>(value));
112 return *this;
113 }
115 m_oauth2GrantTypesSupportedHasBeenSet = true;
116 m_oauth2GrantTypesSupported.push_back(value);
117 return *this;
118 }
120 private:
121 Aws::Vector<Aws::String> m_oAuthScopes;
122
124
125 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
126 bool m_oAuthScopesHasBeenSet = false;
127 bool m_dataTransferApisHasBeenSet = false;
128 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace Appflow
133} // namespace Aws
SalesforceMetadata & WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT &&value)
void SetDataTransferApis(DataTransferApisT &&value)
const Aws::Vector< SalesforceDataTransferApi > & GetDataTransferApis() const
SalesforceMetadata & WithOAuthScopes(OAuthScopesT &&value)
SalesforceMetadata & WithDataTransferApis(DataTransferApisT &&value)
const Aws::Vector< Aws::String > & GetOAuthScopes() const
AWS_APPFLOW_API SalesforceMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT &&value)
SalesforceMetadata & AddDataTransferApis(SalesforceDataTransferApi value)
const Aws::Vector< OAuth2GrantType > & GetOauth2GrantTypesSupported() const
AWS_APPFLOW_API SalesforceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOAuthScopes(OAuthScopesT &&value)
AWS_APPFLOW_API SalesforceMetadata()=default
SalesforceMetadata & AddOAuthScopes(OAuthScopesT &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
SalesforceMetadata & AddOauth2GrantTypesSupported(OAuth2GrantType value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue