AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
AuthConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
9#include <aws/iot-managed-integrations/model/AuthMaterial.h>
10#include <aws/iot-managed-integrations/model/OAuthConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoTManagedIntegrations {
22namespace Model {
23
32 public:
33 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig() = default;
34 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const OAuthConfig& GetOAuth() const { return m_oAuth; }
44 inline bool OAuthHasBeenSet() const { return m_oAuthHasBeenSet; }
45 template <typename OAuthT = OAuthConfig>
46 void SetOAuth(OAuthT&& value) {
47 m_oAuthHasBeenSet = true;
48 m_oAuth = std::forward<OAuthT>(value);
49 }
50 template <typename OAuthT = OAuthConfig>
51 AuthConfig& WithOAuth(OAuthT&& value) {
52 SetOAuth(std::forward<OAuthT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Vector<AuthMaterial>& GetGeneralAuthorization() const { return m_generalAuthorization; }
62 inline bool GeneralAuthorizationHasBeenSet() const { return m_generalAuthorizationHasBeenSet; }
63 template <typename GeneralAuthorizationT = Aws::Vector<AuthMaterial>>
64 void SetGeneralAuthorization(GeneralAuthorizationT&& value) {
65 m_generalAuthorizationHasBeenSet = true;
66 m_generalAuthorization = std::forward<GeneralAuthorizationT>(value);
67 }
68 template <typename GeneralAuthorizationT = Aws::Vector<AuthMaterial>>
69 AuthConfig& WithGeneralAuthorization(GeneralAuthorizationT&& value) {
70 SetGeneralAuthorization(std::forward<GeneralAuthorizationT>(value));
71 return *this;
72 }
73 template <typename GeneralAuthorizationT = AuthMaterial>
74 AuthConfig& AddGeneralAuthorization(GeneralAuthorizationT&& value) {
75 m_generalAuthorizationHasBeenSet = true;
76 m_generalAuthorization.emplace_back(std::forward<GeneralAuthorizationT>(value));
77 return *this;
78 }
80 private:
81 OAuthConfig m_oAuth;
82
83 Aws::Vector<AuthMaterial> m_generalAuthorization;
84 bool m_oAuthHasBeenSet = false;
85 bool m_generalAuthorizationHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace IoTManagedIntegrations
90} // namespace Aws
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AuthConfig & WithGeneralAuthorization(GeneralAuthorizationT &&value)
Definition AuthConfig.h:69
AuthConfig & WithOAuth(OAuthT &&value)
Definition AuthConfig.h:51
AuthConfig & AddGeneralAuthorization(GeneralAuthorizationT &&value)
Definition AuthConfig.h:74
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig()=default
const Aws::Vector< AuthMaterial > & GetGeneralAuthorization() const
Definition AuthConfig.h:61
AWS_IOTMANAGEDINTEGRATIONS_API AuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGeneralAuthorization(GeneralAuthorizationT &&value)
Definition AuthConfig.h:64
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue