AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRotationSize(const Aws::String& value) { m_rotationSizeHasBeenSet = true; m_rotationSize = value; }
47 inline void SetRotationSize(Aws::String&& value) { m_rotationSizeHasBeenSet = true; m_rotationSize = std::move(value); }
48 inline void SetRotationSize(const char* value) { m_rotationSizeHasBeenSet = true; m_rotationSize.assign(value); }
50 inline ContainerLogRotationConfiguration& WithRotationSize(Aws::String&& value) { SetRotationSize(std::move(value)); return *this;}
51 inline ContainerLogRotationConfiguration& WithRotationSize(const char* value) { SetRotationSize(value); return *this;}
53
55
58 inline int GetMaxFilesToKeep() const{ return m_maxFilesToKeep; }
59 inline bool MaxFilesToKeepHasBeenSet() const { return m_maxFilesToKeepHasBeenSet; }
60 inline void SetMaxFilesToKeep(int value) { m_maxFilesToKeepHasBeenSet = true; m_maxFilesToKeep = value; }
63 private:
64
65 Aws::String m_rotationSize;
66 bool m_rotationSizeHasBeenSet = false;
67
68 int m_maxFilesToKeep;
69 bool m_maxFilesToKeepHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace EMRContainers
74} // namespace Aws
AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration(Aws::Utils::Json::JsonView jsonValue)
ContainerLogRotationConfiguration & WithRotationSize(const char *value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMRCONTAINERS_API ContainerLogRotationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerLogRotationConfiguration & WithRotationSize(const Aws::String &value)
ContainerLogRotationConfiguration & WithRotationSize(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue