AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
TelemetryDestinationConfiguration.h
1
6#pragma once
7#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
8#include <aws/observabilityadmin/model/DestinationType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/observabilityadmin/model/VPCFlowLogParameters.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ObservabilityAdmin
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OBSERVABILITYADMIN_API TelemetryDestinationConfiguration() = default;
40 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline DestinationType GetDestinationType() const { return m_destinationType; }
49 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
50 inline void SetDestinationType(DestinationType value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
53
55
59 inline const Aws::String& GetDestinationPattern() const { return m_destinationPattern; }
60 inline bool DestinationPatternHasBeenSet() const { return m_destinationPatternHasBeenSet; }
61 template<typename DestinationPatternT = Aws::String>
62 void SetDestinationPattern(DestinationPatternT&& value) { m_destinationPatternHasBeenSet = true; m_destinationPattern = std::forward<DestinationPatternT>(value); }
63 template<typename DestinationPatternT = Aws::String>
64 TelemetryDestinationConfiguration& WithDestinationPattern(DestinationPatternT&& value) { SetDestinationPattern(std::forward<DestinationPatternT>(value)); return *this;}
66
68
71 inline int GetRetentionInDays() const { return m_retentionInDays; }
72 inline bool RetentionInDaysHasBeenSet() const { return m_retentionInDaysHasBeenSet; }
73 inline void SetRetentionInDays(int value) { m_retentionInDaysHasBeenSet = true; m_retentionInDays = value; }
76
78
82 inline const VPCFlowLogParameters& GetVPCFlowLogParameters() const { return m_vPCFlowLogParameters; }
83 inline bool VPCFlowLogParametersHasBeenSet() const { return m_vPCFlowLogParametersHasBeenSet; }
84 template<typename VPCFlowLogParametersT = VPCFlowLogParameters>
85 void SetVPCFlowLogParameters(VPCFlowLogParametersT&& value) { m_vPCFlowLogParametersHasBeenSet = true; m_vPCFlowLogParameters = std::forward<VPCFlowLogParametersT>(value); }
86 template<typename VPCFlowLogParametersT = VPCFlowLogParameters>
87 TelemetryDestinationConfiguration& WithVPCFlowLogParameters(VPCFlowLogParametersT&& value) { SetVPCFlowLogParameters(std::forward<VPCFlowLogParametersT>(value)); return *this;}
89 private:
90
92 bool m_destinationTypeHasBeenSet = false;
93
94 Aws::String m_destinationPattern;
95 bool m_destinationPatternHasBeenSet = false;
96
97 int m_retentionInDays{0};
98 bool m_retentionInDaysHasBeenSet = false;
99
100 VPCFlowLogParameters m_vPCFlowLogParameters;
101 bool m_vPCFlowLogParametersHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace ObservabilityAdmin
106} // namespace Aws
TelemetryDestinationConfiguration & WithVPCFlowLogParameters(VPCFlowLogParametersT &&value)
AWS_OBSERVABILITYADMIN_API TelemetryDestinationConfiguration()=default
AWS_OBSERVABILITYADMIN_API TelemetryDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
TelemetryDestinationConfiguration & WithDestinationType(DestinationType value)
AWS_OBSERVABILITYADMIN_API TelemetryDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
TelemetryDestinationConfiguration & WithDestinationPattern(DestinationPatternT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue