AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AccessLogSettings.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApiGatewayV2 {
20namespace Model {
21
28 public:
29 AWS_APIGATEWAYV2_API AccessLogSettings() = default;
30 AWS_APIGATEWAYV2_API AccessLogSettings(Aws::Utils::Json::JsonView jsonValue);
31 AWS_APIGATEWAYV2_API AccessLogSettings& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetDestinationArn() const { return m_destinationArn; }
39 inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
40 template <typename DestinationArnT = Aws::String>
41 void SetDestinationArn(DestinationArnT&& value) {
42 m_destinationArnHasBeenSet = true;
43 m_destinationArn = std::forward<DestinationArnT>(value);
44 }
45 template <typename DestinationArnT = Aws::String>
46 AccessLogSettings& WithDestinationArn(DestinationArnT&& value) {
47 SetDestinationArn(std::forward<DestinationArnT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetFormat() const { return m_format; }
58 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
59 template <typename FormatT = Aws::String>
60 void SetFormat(FormatT&& value) {
61 m_formatHasBeenSet = true;
62 m_format = std::forward<FormatT>(value);
63 }
64 template <typename FormatT = Aws::String>
65 AccessLogSettings& WithFormat(FormatT&& value) {
66 SetFormat(std::forward<FormatT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_destinationArn;
72
73 Aws::String m_format;
74 bool m_destinationArnHasBeenSet = false;
75 bool m_formatHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace ApiGatewayV2
80} // namespace Aws
AccessLogSettings & WithDestinationArn(DestinationArnT &&value)
AWS_APIGATEWAYV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIGATEWAYV2_API AccessLogSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_APIGATEWAYV2_API AccessLogSettings()=default
AWS_APIGATEWAYV2_API AccessLogSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AccessLogSettings & WithFormat(FormatT &&value)
const Aws::String & GetDestinationArn() const
void SetDestinationArn(DestinationArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue