AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SalesforceMetadata.h
1
6#pragma once
7#include <aws/appflow/Appflow_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appflow/model/SalesforceDataTransferApi.h>
11#include <aws/appflow/model/OAuth2GrantType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Appflow
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_APPFLOW_API SalesforceMetadata() = default;
41 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetOAuthScopes() const { return m_oAuthScopes; }
49 inline bool OAuthScopesHasBeenSet() const { return m_oAuthScopesHasBeenSet; }
50 template<typename OAuthScopesT = Aws::Vector<Aws::String>>
51 void SetOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::forward<OAuthScopesT>(value); }
52 template<typename OAuthScopesT = Aws::Vector<Aws::String>>
53 SalesforceMetadata& WithOAuthScopes(OAuthScopesT&& value) { SetOAuthScopes(std::forward<OAuthScopesT>(value)); return *this;}
54 template<typename OAuthScopesT = Aws::String>
55 SalesforceMetadata& AddOAuthScopes(OAuthScopesT&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.emplace_back(std::forward<OAuthScopesT>(value)); return *this; }
57
59
63 inline const Aws::Vector<SalesforceDataTransferApi>& GetDataTransferApis() const { return m_dataTransferApis; }
64 inline bool DataTransferApisHasBeenSet() const { return m_dataTransferApisHasBeenSet; }
65 template<typename DataTransferApisT = Aws::Vector<SalesforceDataTransferApi>>
66 void SetDataTransferApis(DataTransferApisT&& value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis = std::forward<DataTransferApisT>(value); }
67 template<typename DataTransferApisT = Aws::Vector<SalesforceDataTransferApi>>
68 SalesforceMetadata& WithDataTransferApis(DataTransferApisT&& value) { SetDataTransferApis(std::forward<DataTransferApisT>(value)); return *this;}
69 inline SalesforceMetadata& AddDataTransferApis(SalesforceDataTransferApi value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis.push_back(value); return *this; }
71
73
88 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const { return m_oauth2GrantTypesSupported; }
89 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
90 template<typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
91 void SetOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported = std::forward<Oauth2GrantTypesSupportedT>(value); }
92 template<typename Oauth2GrantTypesSupportedT = Aws::Vector<OAuth2GrantType>>
93 SalesforceMetadata& WithOauth2GrantTypesSupported(Oauth2GrantTypesSupportedT&& value) { SetOauth2GrantTypesSupported(std::forward<Oauth2GrantTypesSupportedT>(value)); return *this;}
94 inline SalesforceMetadata& AddOauth2GrantTypesSupported(OAuth2GrantType value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(value); return *this; }
96 private:
97
98 Aws::Vector<Aws::String> m_oAuthScopes;
99 bool m_oAuthScopesHasBeenSet = false;
100
102 bool m_dataTransferApisHasBeenSet = false;
103
104 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
105 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Appflow
110} // 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