AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DependentEntity.h
1
6#pragma once
7#include <aws/ssm-contacts/SSMContacts_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSMContacts
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SSMCONTACTS_API DependentEntity() = default;
38 AWS_SSMCONTACTS_API DependentEntity(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMCONTACTS_API DependentEntity& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::String& GetRelationType() const { return m_relationType; }
49 inline bool RelationTypeHasBeenSet() const { return m_relationTypeHasBeenSet; }
50 template<typename RelationTypeT = Aws::String>
51 void SetRelationType(RelationTypeT&& value) { m_relationTypeHasBeenSet = true; m_relationType = std::forward<RelationTypeT>(value); }
52 template<typename RelationTypeT = Aws::String>
53 DependentEntity& WithRelationType(RelationTypeT&& value) { SetRelationType(std::forward<RelationTypeT>(value)); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetDependentResourceIds() const { return m_dependentResourceIds; }
61 inline bool DependentResourceIdsHasBeenSet() const { return m_dependentResourceIdsHasBeenSet; }
62 template<typename DependentResourceIdsT = Aws::Vector<Aws::String>>
63 void SetDependentResourceIds(DependentResourceIdsT&& value) { m_dependentResourceIdsHasBeenSet = true; m_dependentResourceIds = std::forward<DependentResourceIdsT>(value); }
64 template<typename DependentResourceIdsT = Aws::Vector<Aws::String>>
65 DependentEntity& WithDependentResourceIds(DependentResourceIdsT&& value) { SetDependentResourceIds(std::forward<DependentResourceIdsT>(value)); return *this;}
66 template<typename DependentResourceIdsT = Aws::String>
67 DependentEntity& AddDependentResourceIds(DependentResourceIdsT&& value) { m_dependentResourceIdsHasBeenSet = true; m_dependentResourceIds.emplace_back(std::forward<DependentResourceIdsT>(value)); return *this; }
69 private:
70
71 Aws::String m_relationType;
72 bool m_relationTypeHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_dependentResourceIds;
75 bool m_dependentResourceIdsHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace SSMContacts
80} // namespace Aws
DependentEntity & WithDependentResourceIds(DependentResourceIdsT &&value)
AWS_SSMCONTACTS_API DependentEntity(Aws::Utils::Json::JsonView jsonValue)
void SetRelationType(RelationTypeT &&value)
const Aws::Vector< Aws::String > & GetDependentResourceIds() const
const Aws::String & GetRelationType() const
AWS_SSMCONTACTS_API DependentEntity()=default
void SetDependentResourceIds(DependentResourceIdsT &&value)
DependentEntity & WithRelationType(RelationTypeT &&value)
AWS_SSMCONTACTS_API DependentEntity & operator=(Aws::Utils::Json::JsonView jsonValue)
DependentEntity & AddDependentResourceIds(DependentResourceIdsT &&value)
AWS_SSMCONTACTS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue