AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContainerLogRotationConfiguration.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMRContainers
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration() = default;
37 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetRotationSize() const { return m_rotationSize; }
45 inline bool RotationSizeHasBeenSet() const { return m_rotationSizeHasBeenSet; }
46 template<typename RotationSizeT = Aws::String>
47 void SetRotationSize(RotationSizeT&& value) { m_rotationSizeHasBeenSet = true; m_rotationSize = std::forward<RotationSizeT>(value); }
48 template<typename RotationSizeT = Aws::String>
49 ContainerLogRotationConfiguration& WithRotationSize(RotationSizeT&& value) { SetRotationSize(std::forward<RotationSizeT>(value)); return *this;}
51
53
56 inline int GetMaxFilesToKeep() const { return m_maxFilesToKeep; }
57 inline bool MaxFilesToKeepHasBeenSet() const { return m_maxFilesToKeepHasBeenSet; }
58 inline void SetMaxFilesToKeep(int value) { m_maxFilesToKeepHasBeenSet = true; m_maxFilesToKeep = value; }
61 private:
62
63 Aws::String m_rotationSize;
64 bool m_rotationSizeHasBeenSet = false;
65
66 int m_maxFilesToKeep{0};
67 bool m_maxFilesToKeepHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace EMRContainers
72} // namespace Aws
AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration()=default
AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerLogRotationConfiguration & WithRotationSize(RotationSizeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue