AWS SDK for C++  1.9.18
AWS SDK for C++
AccessLogSettings.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
47  inline const Aws::String& GetFormat() const{ return m_format; }
48 
55  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
56 
63  inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
64 
71  inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
72 
79  inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
80 
87  inline AccessLogSettings& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
88 
95  inline AccessLogSettings& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
96 
103  inline AccessLogSettings& WithFormat(const char* value) { SetFormat(value); return *this;}
104 
105 
112  inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; }
113 
120  inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; }
121 
128  inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; }
129 
136  inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); }
137 
144  inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); }
145 
152  inline AccessLogSettings& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;}
153 
160  inline AccessLogSettings& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;}
161 
168  inline AccessLogSettings& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;}
169 
170  private:
171 
172  Aws::String m_format;
173  bool m_formatHasBeenSet;
174 
175  Aws::String m_destinationArn;
176  bool m_destinationArnHasBeenSet;
177  };
178 
179 } // namespace Model
180 } // namespace APIGateway
181 } // namespace Aws
Aws::APIGateway::Model::AccessLogSettings::AccessLogSettings
AccessLogSettings()
Aws::APIGateway::Model::AccessLogSettings::SetDestinationArn
void SetDestinationArn(Aws::String &&value)
Definition: AccessLogSettings.h:136
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::AccessLogSettings::WithDestinationArn
AccessLogSettings & WithDestinationArn(const Aws::String &value)
Definition: AccessLogSettings.h:152
Aws::APIGateway::Model::AccessLogSettings
Definition: AccessLogSettings.h:33
Aws::APIGateway::Model::AccessLogSettings::AccessLogSettings
AccessLogSettings(Aws::Utils::Json::JsonView jsonValue)
Aws::APIGateway::Model::AccessLogSettings::WithDestinationArn
AccessLogSettings & WithDestinationArn(const char *value)
Definition: AccessLogSettings.h:168
Aws::APIGateway::Model::AccessLogSettings::GetDestinationArn
const Aws::String & GetDestinationArn() const
Definition: AccessLogSettings.h:112
Aws::APIGateway::Model::AccessLogSettings::SetDestinationArn
void SetDestinationArn(const char *value)
Definition: AccessLogSettings.h:144
APIGateway_EXPORTS.h
Aws::APIGateway::Model::AccessLogSettings::SetDestinationArn
void SetDestinationArn(const Aws::String &value)
Definition: AccessLogSettings.h:128
Aws::APIGateway::Model::AccessLogSettings::SetFormat
void SetFormat(Aws::String &&value)
Definition: AccessLogSettings.h:71
Aws::APIGateway::Model::AccessLogSettings::WithFormat
AccessLogSettings & WithFormat(const Aws::String &value)
Definition: AccessLogSettings.h:87
Aws::APIGateway::Model::AccessLogSettings::GetFormat
const Aws::String & GetFormat() const
Definition: AccessLogSettings.h:47
Aws::APIGateway::Model::AccessLogSettings::SetFormat
void SetFormat(const char *value)
Definition: AccessLogSettings.h:79
Aws::APIGateway::Model::AccessLogSettings::SetFormat
void SetFormat(const Aws::String &value)
Definition: AccessLogSettings.h:63
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::APIGateway::Model::AccessLogSettings::operator=
AccessLogSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::APIGateway::Model::AccessLogSettings::WithDestinationArn
AccessLogSettings & WithDestinationArn(Aws::String &&value)
Definition: AccessLogSettings.h:160
Aws::APIGateway::Model::AccessLogSettings::WithFormat
AccessLogSettings & WithFormat(const char *value)
Definition: AccessLogSettings.h:103
Aws::APIGateway::Model::AccessLogSettings::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: AccessLogSettings.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::AccessLogSettings::DestinationArnHasBeenSet
bool DestinationArnHasBeenSet() const
Definition: AccessLogSettings.h:120
Aws::APIGateway::Model::AccessLogSettings::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::APIGateway::Model::AccessLogSettings::WithFormat
AccessLogSettings & WithFormat(Aws::String &&value)
Definition: AccessLogSettings.h:95