AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
LogConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/LogDestination.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
31 public:
32 AWS_GAMELIFT_API LogConfiguration() = default;
33 AWS_GAMELIFT_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
47 inline LogDestination GetLogDestination() const { return m_logDestination; }
48 inline bool LogDestinationHasBeenSet() const { return m_logDestinationHasBeenSet; }
49 inline void SetLogDestination(LogDestination value) {
50 m_logDestinationHasBeenSet = true;
51 m_logDestination = value;
52 }
54 SetLogDestination(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
65 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
66 template <typename S3BucketNameT = Aws::String>
67 void SetS3BucketName(S3BucketNameT&& value) {
68 m_s3BucketNameHasBeenSet = true;
69 m_s3BucketName = std::forward<S3BucketNameT>(value);
70 }
71 template <typename S3BucketNameT = Aws::String>
72 LogConfiguration& WithS3BucketName(S3BucketNameT&& value) {
73 SetS3BucketName(std::forward<S3BucketNameT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetLogGroupArn() const { return m_logGroupArn; }
84 inline bool LogGroupArnHasBeenSet() const { return m_logGroupArnHasBeenSet; }
85 template <typename LogGroupArnT = Aws::String>
86 void SetLogGroupArn(LogGroupArnT&& value) {
87 m_logGroupArnHasBeenSet = true;
88 m_logGroupArn = std::forward<LogGroupArnT>(value);
89 }
90 template <typename LogGroupArnT = Aws::String>
91 LogConfiguration& WithLogGroupArn(LogGroupArnT&& value) {
92 SetLogGroupArn(std::forward<LogGroupArnT>(value));
93 return *this;
94 }
96 private:
98
99 Aws::String m_s3BucketName;
100
101 Aws::String m_logGroupArn;
102 bool m_logDestinationHasBeenSet = false;
103 bool m_s3BucketNameHasBeenSet = false;
104 bool m_logGroupArnHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace GameLift
109} // namespace Aws
LogConfiguration & WithLogGroupArn(LogGroupArnT &&value)
void SetS3BucketName(S3BucketNameT &&value)
const Aws::String & GetS3BucketName() const
void SetLogDestination(LogDestination value)
AWS_GAMELIFT_API LogConfiguration()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
LogConfiguration & WithS3BucketName(S3BucketNameT &&value)
AWS_GAMELIFT_API LogConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API LogConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetLogGroupArn(LogGroupArnT &&value)
const Aws::String & GetLogGroupArn() const
LogConfiguration & WithLogDestination(LogDestination value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue