AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
JWTConfiguration.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ApiGatewayV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APIGATEWAYV2_API JWTConfiguration();
37 AWS_APIGATEWAYV2_API JWTConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APIGATEWAYV2_API JWTConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const Aws::Vector<Aws::String>& GetAudience() const{ return m_audience; }
50 inline bool AudienceHasBeenSet() const { return m_audienceHasBeenSet; }
51 inline void SetAudience(const Aws::Vector<Aws::String>& value) { m_audienceHasBeenSet = true; m_audience = value; }
52 inline void SetAudience(Aws::Vector<Aws::String>&& value) { m_audienceHasBeenSet = true; m_audience = std::move(value); }
53 inline JWTConfiguration& WithAudience(const Aws::Vector<Aws::String>& value) { SetAudience(value); return *this;}
54 inline JWTConfiguration& WithAudience(Aws::Vector<Aws::String>&& value) { SetAudience(std::move(value)); return *this;}
55 inline JWTConfiguration& AddAudience(const Aws::String& value) { m_audienceHasBeenSet = true; m_audience.push_back(value); return *this; }
56 inline JWTConfiguration& AddAudience(Aws::String&& value) { m_audienceHasBeenSet = true; m_audience.push_back(std::move(value)); return *this; }
57 inline JWTConfiguration& AddAudience(const char* value) { m_audienceHasBeenSet = true; m_audience.push_back(value); return *this; }
59
61
68 inline const Aws::String& GetIssuer() const{ return m_issuer; }
69 inline bool IssuerHasBeenSet() const { return m_issuerHasBeenSet; }
70 inline void SetIssuer(const Aws::String& value) { m_issuerHasBeenSet = true; m_issuer = value; }
71 inline void SetIssuer(Aws::String&& value) { m_issuerHasBeenSet = true; m_issuer = std::move(value); }
72 inline void SetIssuer(const char* value) { m_issuerHasBeenSet = true; m_issuer.assign(value); }
73 inline JWTConfiguration& WithIssuer(const Aws::String& value) { SetIssuer(value); return *this;}
74 inline JWTConfiguration& WithIssuer(Aws::String&& value) { SetIssuer(std::move(value)); return *this;}
75 inline JWTConfiguration& WithIssuer(const char* value) { SetIssuer(value); return *this;}
77 private:
78
79 Aws::Vector<Aws::String> m_audience;
80 bool m_audienceHasBeenSet = false;
81
82 Aws::String m_issuer;
83 bool m_issuerHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace ApiGatewayV2
88} // namespace Aws
JWTConfiguration & WithAudience(const Aws::Vector< Aws::String > &value)
JWTConfiguration & WithAudience(Aws::Vector< Aws::String > &&value)
void SetAudience(const Aws::Vector< Aws::String > &value)
JWTConfiguration & AddAudience(Aws::String &&value)
JWTConfiguration & AddAudience(const char *value)
JWTConfiguration & WithIssuer(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAudience() const
JWTConfiguration & WithIssuer(const char *value)
void SetIssuer(const Aws::String &value)
void SetAudience(Aws::Vector< Aws::String > &&value)
AWS_APIGATEWAYV2_API JWTConfiguration(Aws::Utils::Json::JsonView jsonValue)
JWTConfiguration & WithIssuer(Aws::String &&value)
JWTConfiguration & AddAudience(const Aws::String &value)
AWS_APIGATEWAYV2_API JWTConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue