AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetOAuthScopes(const Aws::Vector<Aws::String>& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = value; }
51 inline void SetOAuthScopes(Aws::Vector<Aws::String>&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes = std::move(value); }
52 inline SalesforceMetadata& WithOAuthScopes(const Aws::Vector<Aws::String>& value) { SetOAuthScopes(value); return *this;}
53 inline SalesforceMetadata& WithOAuthScopes(Aws::Vector<Aws::String>&& value) { SetOAuthScopes(std::move(value)); return *this;}
54 inline SalesforceMetadata& AddOAuthScopes(const Aws::String& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
55 inline SalesforceMetadata& AddOAuthScopes(Aws::String&& value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(std::move(value)); return *this; }
56 inline SalesforceMetadata& AddOAuthScopes(const char* value) { m_oAuthScopesHasBeenSet = true; m_oAuthScopes.push_back(value); return *this; }
58
60
64 inline const Aws::Vector<SalesforceDataTransferApi>& GetDataTransferApis() const{ return m_dataTransferApis; }
65 inline bool DataTransferApisHasBeenSet() const { return m_dataTransferApisHasBeenSet; }
66 inline void SetDataTransferApis(const Aws::Vector<SalesforceDataTransferApi>& value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis = value; }
67 inline void SetDataTransferApis(Aws::Vector<SalesforceDataTransferApi>&& value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis = std::move(value); }
70 inline SalesforceMetadata& AddDataTransferApis(const SalesforceDataTransferApi& value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis.push_back(value); return *this; }
71 inline SalesforceMetadata& AddDataTransferApis(SalesforceDataTransferApi&& value) { m_dataTransferApisHasBeenSet = true; m_dataTransferApis.push_back(std::move(value)); return *this; }
73
75
90 inline const Aws::Vector<OAuth2GrantType>& GetOauth2GrantTypesSupported() const{ return m_oauth2GrantTypesSupported; }
91 inline bool Oauth2GrantTypesSupportedHasBeenSet() const { return m_oauth2GrantTypesSupportedHasBeenSet; }
92 inline void SetOauth2GrantTypesSupported(const Aws::Vector<OAuth2GrantType>& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported = value; }
93 inline void SetOauth2GrantTypesSupported(Aws::Vector<OAuth2GrantType>&& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported = std::move(value); }
96 inline SalesforceMetadata& AddOauth2GrantTypesSupported(const OAuth2GrantType& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(value); return *this; }
97 inline SalesforceMetadata& AddOauth2GrantTypesSupported(OAuth2GrantType&& value) { m_oauth2GrantTypesSupportedHasBeenSet = true; m_oauth2GrantTypesSupported.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::Vector<Aws::String> m_oAuthScopes;
102 bool m_oAuthScopesHasBeenSet = false;
103
105 bool m_dataTransferApisHasBeenSet = false;
106
107 Aws::Vector<OAuth2GrantType> m_oauth2GrantTypesSupported;
108 bool m_oauth2GrantTypesSupportedHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Appflow
113} // namespace Aws
SalesforceMetadata & AddOauth2GrantTypesSupported(OAuth2GrantType &&value)
const Aws::Vector< SalesforceDataTransferApi > & GetDataTransferApis() const
const Aws::Vector< Aws::String > & GetOAuthScopes() const
SalesforceMetadata & WithOAuthScopes(Aws::Vector< Aws::String > &&value)
AWS_APPFLOW_API SalesforceMetadata(Aws::Utils::Json::JsonView jsonValue)
SalesforceMetadata & AddDataTransferApis(SalesforceDataTransferApi &&value)
SalesforceMetadata & AddOAuthScopes(Aws::String &&value)
SalesforceMetadata & AddOAuthScopes(const char *value)
SalesforceMetadata & AddOauth2GrantTypesSupported(const OAuth2GrantType &value)
void SetOauth2GrantTypesSupported(const Aws::Vector< OAuth2GrantType > &value)
SalesforceMetadata & WithOAuthScopes(const Aws::Vector< Aws::String > &value)
const Aws::Vector< OAuth2GrantType > & GetOauth2GrantTypesSupported() const
AWS_APPFLOW_API SalesforceMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
SalesforceMetadata & WithDataTransferApis(const Aws::Vector< SalesforceDataTransferApi > &value)
SalesforceMetadata & AddDataTransferApis(const SalesforceDataTransferApi &value)
SalesforceMetadata & AddOAuthScopes(const Aws::String &value)
SalesforceMetadata & WithOauth2GrantTypesSupported(Aws::Vector< OAuth2GrantType > &&value)
SalesforceMetadata & WithOauth2GrantTypesSupported(const Aws::Vector< OAuth2GrantType > &value)
SalesforceMetadata & WithDataTransferApis(Aws::Vector< SalesforceDataTransferApi > &&value)
void SetDataTransferApis(const Aws::Vector< SalesforceDataTransferApi > &value)
void SetOAuthScopes(Aws::Vector< Aws::String > &&value)
void SetOAuthScopes(const Aws::Vector< Aws::String > &value)
void SetDataTransferApis(Aws::Vector< SalesforceDataTransferApi > &&value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
void SetOauth2GrantTypesSupported(Aws::Vector< OAuth2GrantType > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue