AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UsageProfileDefinition.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glue/Glue_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Glue {
21namespace Model {
22
29 public:
30 AWS_GLUE_API UsageProfileDefinition() = default;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetDescription() const { return m_description; }
58 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
59 template <typename DescriptionT = Aws::String>
60 void SetDescription(DescriptionT&& value) {
61 m_descriptionHasBeenSet = true;
62 m_description = std::forward<DescriptionT>(value);
63 }
64 template <typename DescriptionT = Aws::String>
65 UsageProfileDefinition& WithDescription(DescriptionT&& value) {
66 SetDescription(std::forward<DescriptionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::Utils::DateTime& GetCreatedOn() const { return m_createdOn; }
76 inline bool CreatedOnHasBeenSet() const { return m_createdOnHasBeenSet; }
77 template <typename CreatedOnT = Aws::Utils::DateTime>
78 void SetCreatedOn(CreatedOnT&& value) {
79 m_createdOnHasBeenSet = true;
80 m_createdOn = std::forward<CreatedOnT>(value);
81 }
82 template <typename CreatedOnT = Aws::Utils::DateTime>
84 SetCreatedOn(std::forward<CreatedOnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetLastModifiedOn() const { return m_lastModifiedOn; }
94 inline bool LastModifiedOnHasBeenSet() const { return m_lastModifiedOnHasBeenSet; }
95 template <typename LastModifiedOnT = Aws::Utils::DateTime>
96 void SetLastModifiedOn(LastModifiedOnT&& value) {
97 m_lastModifiedOnHasBeenSet = true;
98 m_lastModifiedOn = std::forward<LastModifiedOnT>(value);
99 }
100 template <typename LastModifiedOnT = Aws::Utils::DateTime>
101 UsageProfileDefinition& WithLastModifiedOn(LastModifiedOnT&& value) {
102 SetLastModifiedOn(std::forward<LastModifiedOnT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_name;
108
109 Aws::String m_description;
110
111 Aws::Utils::DateTime m_createdOn{};
112
113 Aws::Utils::DateTime m_lastModifiedOn{};
114 bool m_nameHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116 bool m_createdOnHasBeenSet = false;
117 bool m_lastModifiedOnHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Glue
122} // namespace Aws
void SetLastModifiedOn(LastModifiedOnT &&value)
UsageProfileDefinition & WithName(NameT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
UsageProfileDefinition & WithCreatedOn(CreatedOnT &&value)
AWS_GLUE_API UsageProfileDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API UsageProfileDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageProfileDefinition & WithDescription(DescriptionT &&value)
AWS_GLUE_API UsageProfileDefinition()=default
const Aws::Utils::DateTime & GetCreatedOn() const
const Aws::Utils::DateTime & GetLastModifiedOn() const
UsageProfileDefinition & WithLastModifiedOn(LastModifiedOnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue