AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ServiceEntity.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ApplicationSignals {
20namespace Model {
21
29 public:
30 AWS_APPLICATIONSIGNALS_API ServiceEntity() = default;
31 AWS_APPLICATIONSIGNALS_API ServiceEntity(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPLICATIONSIGNALS_API ServiceEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 template <typename TypeT = Aws::String>
42 void SetType(TypeT&& value) {
43 m_typeHasBeenSet = true;
44 m_type = std::forward<TypeT>(value);
45 }
46 template <typename TypeT = Aws::String>
47 ServiceEntity& WithType(TypeT&& value) {
48 SetType(std::forward<TypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 ServiceEntity& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetEnvironment() const { return m_environment; }
76 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
77 template <typename EnvironmentT = Aws::String>
78 void SetEnvironment(EnvironmentT&& value) {
79 m_environmentHasBeenSet = true;
80 m_environment = std::forward<EnvironmentT>(value);
81 }
82 template <typename EnvironmentT = Aws::String>
83 ServiceEntity& WithEnvironment(EnvironmentT&& value) {
84 SetEnvironment(std::forward<EnvironmentT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
95 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
96 template <typename AwsAccountIdT = Aws::String>
97 void SetAwsAccountId(AwsAccountIdT&& value) {
98 m_awsAccountIdHasBeenSet = true;
99 m_awsAccountId = std::forward<AwsAccountIdT>(value);
100 }
101 template <typename AwsAccountIdT = Aws::String>
102 ServiceEntity& WithAwsAccountId(AwsAccountIdT&& value) {
103 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_type;
109
110 Aws::String m_name;
111
112 Aws::String m_environment;
113
114 Aws::String m_awsAccountId;
115 bool m_typeHasBeenSet = false;
116 bool m_nameHasBeenSet = false;
117 bool m_environmentHasBeenSet = false;
118 bool m_awsAccountIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace ApplicationSignals
123} // namespace Aws
AWS_APPLICATIONSIGNALS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceEntity & WithName(NameT &&value)
const Aws::String & GetEnvironment() const
AWS_APPLICATIONSIGNALS_API ServiceEntity(Aws::Utils::Json::JsonView jsonValue)
ServiceEntity & WithAwsAccountId(AwsAccountIdT &&value)
void SetAwsAccountId(AwsAccountIdT &&value)
AWS_APPLICATIONSIGNALS_API ServiceEntity()=default
ServiceEntity & WithType(TypeT &&value)
ServiceEntity & WithEnvironment(EnvironmentT &&value)
const Aws::String & GetAwsAccountId() const
AWS_APPLICATIONSIGNALS_API ServiceEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue