1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/lexv2-models/LexModelsV2_EXPORTS.h> 8 #include <aws/lexv2-models/model/CloudWatchLogGroupLogDestination.h> 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 LexModelsV2 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Defines the Amazon CloudWatch Logs destination log group for conversation 28 * text logs.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/TextLogDestination">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_LEXMODELSV2_API TextLogDestination 33 { 34 public: 35 TextLogDestination(); 36 TextLogDestination(Aws::Utils::Json::JsonView jsonValue); 37 TextLogDestination& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 43 * delivered.</p> 44 */ GetCloudWatch()45 inline const CloudWatchLogGroupLogDestination& GetCloudWatch() const{ return m_cloudWatch; } 46 47 /** 48 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 49 * delivered.</p> 50 */ CloudWatchHasBeenSet()51 inline bool CloudWatchHasBeenSet() const { return m_cloudWatchHasBeenSet; } 52 53 /** 54 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 55 * delivered.</p> 56 */ SetCloudWatch(const CloudWatchLogGroupLogDestination & value)57 inline void SetCloudWatch(const CloudWatchLogGroupLogDestination& value) { m_cloudWatchHasBeenSet = true; m_cloudWatch = value; } 58 59 /** 60 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 61 * delivered.</p> 62 */ SetCloudWatch(CloudWatchLogGroupLogDestination && value)63 inline void SetCloudWatch(CloudWatchLogGroupLogDestination&& value) { m_cloudWatchHasBeenSet = true; m_cloudWatch = std::move(value); } 64 65 /** 66 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 67 * delivered.</p> 68 */ WithCloudWatch(const CloudWatchLogGroupLogDestination & value)69 inline TextLogDestination& WithCloudWatch(const CloudWatchLogGroupLogDestination& value) { SetCloudWatch(value); return *this;} 70 71 /** 72 * <p>Defines the Amazon CloudWatch Logs log group where text and metadata logs are 73 * delivered.</p> 74 */ WithCloudWatch(CloudWatchLogGroupLogDestination && value)75 inline TextLogDestination& WithCloudWatch(CloudWatchLogGroupLogDestination&& value) { SetCloudWatch(std::move(value)); return *this;} 76 77 private: 78 79 CloudWatchLogGroupLogDestination m_cloudWatch; 80 bool m_cloudWatchHasBeenSet; 81 }; 82 83 } // namespace Model 84 } // namespace LexModelsV2 85 } // namespace Aws 86