AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExternalUrlConfig.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppIntegrationsService
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig();
36 AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAccessUrl() const{ return m_accessUrl; }
46 inline bool AccessUrlHasBeenSet() const { return m_accessUrlHasBeenSet; }
47 inline void SetAccessUrl(const Aws::String& value) { m_accessUrlHasBeenSet = true; m_accessUrl = value; }
48 inline void SetAccessUrl(Aws::String&& value) { m_accessUrlHasBeenSet = true; m_accessUrl = std::move(value); }
49 inline void SetAccessUrl(const char* value) { m_accessUrlHasBeenSet = true; m_accessUrl.assign(value); }
50 inline ExternalUrlConfig& WithAccessUrl(const Aws::String& value) { SetAccessUrl(value); return *this;}
51 inline ExternalUrlConfig& WithAccessUrl(Aws::String&& value) { SetAccessUrl(std::move(value)); return *this;}
52 inline ExternalUrlConfig& WithAccessUrl(const char* value) { SetAccessUrl(value); return *this;}
54
56
59 inline const Aws::Vector<Aws::String>& GetApprovedOrigins() const{ return m_approvedOrigins; }
60 inline bool ApprovedOriginsHasBeenSet() const { return m_approvedOriginsHasBeenSet; }
61 inline void SetApprovedOrigins(const Aws::Vector<Aws::String>& value) { m_approvedOriginsHasBeenSet = true; m_approvedOrigins = value; }
62 inline void SetApprovedOrigins(Aws::Vector<Aws::String>&& value) { m_approvedOriginsHasBeenSet = true; m_approvedOrigins = std::move(value); }
64 inline ExternalUrlConfig& WithApprovedOrigins(Aws::Vector<Aws::String>&& value) { SetApprovedOrigins(std::move(value)); return *this;}
65 inline ExternalUrlConfig& AddApprovedOrigins(const Aws::String& value) { m_approvedOriginsHasBeenSet = true; m_approvedOrigins.push_back(value); return *this; }
66 inline ExternalUrlConfig& AddApprovedOrigins(Aws::String&& value) { m_approvedOriginsHasBeenSet = true; m_approvedOrigins.push_back(std::move(value)); return *this; }
67 inline ExternalUrlConfig& AddApprovedOrigins(const char* value) { m_approvedOriginsHasBeenSet = true; m_approvedOrigins.push_back(value); return *this; }
69 private:
70
71 Aws::String m_accessUrl;
72 bool m_accessUrlHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_approvedOrigins;
75 bool m_approvedOriginsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace AppIntegrationsService
80} // namespace Aws
AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ExternalUrlConfig & WithAccessUrl(Aws::String &&value)
ExternalUrlConfig & WithApprovedOrigins(const Aws::Vector< Aws::String > &value)
AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig(Aws::Utils::Json::JsonView jsonValue)
void SetApprovedOrigins(Aws::Vector< Aws::String > &&value)
ExternalUrlConfig & WithApprovedOrigins(Aws::Vector< Aws::String > &&value)
void SetApprovedOrigins(const Aws::Vector< Aws::String > &value)
ExternalUrlConfig & WithAccessUrl(const Aws::String &value)
AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig()
ExternalUrlConfig & AddApprovedOrigins(const char *value)
ExternalUrlConfig & AddApprovedOrigins(const Aws::String &value)
AWS_APPINTEGRATIONSSERVICE_API ExternalUrlConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetApprovedOrigins() const
ExternalUrlConfig & AddApprovedOrigins(Aws::String &&value)
ExternalUrlConfig & WithAccessUrl(const char *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