AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ComponentInfo.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSap_EXPORTS.h>
9#include <aws/ssm-sap/model/ComponentType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SsmSap {
21namespace Model {
22
30 public:
31 AWS_SSMSAP_API ComponentInfo() = default;
32 AWS_SSMSAP_API ComponentInfo(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline ComponentType GetComponentType() const { return m_componentType; }
42 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
43 inline void SetComponentType(ComponentType value) {
44 m_componentTypeHasBeenSet = true;
45 m_componentType = value;
46 }
48 SetComponentType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetSid() const { return m_sid; }
59 inline bool SidHasBeenSet() const { return m_sidHasBeenSet; }
60 template <typename SidT = Aws::String>
61 void SetSid(SidT&& value) {
62 m_sidHasBeenSet = true;
63 m_sid = std::forward<SidT>(value);
64 }
65 template <typename SidT = Aws::String>
66 ComponentInfo& WithSid(SidT&& value) {
67 SetSid(std::forward<SidT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
78 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
79 template <typename Ec2InstanceIdT = Aws::String>
80 void SetEc2InstanceId(Ec2InstanceIdT&& value) {
81 m_ec2InstanceIdHasBeenSet = true;
82 m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value);
83 }
84 template <typename Ec2InstanceIdT = Aws::String>
85 ComponentInfo& WithEc2InstanceId(Ec2InstanceIdT&& value) {
86 SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value));
87 return *this;
88 }
90 private:
92
93 Aws::String m_sid;
94
95 Aws::String m_ec2InstanceId;
96 bool m_componentTypeHasBeenSet = false;
97 bool m_sidHasBeenSet = false;
98 bool m_ec2InstanceIdHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace SsmSap
103} // namespace Aws
AWS_SSMSAP_API ComponentInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSid() const
const Aws::String & GetEc2InstanceId() const
ComponentInfo & WithEc2InstanceId(Ec2InstanceIdT &&value)
AWS_SSMSAP_API ComponentInfo(Aws::Utils::Json::JsonView jsonValue)
ComponentInfo & WithComponentType(ComponentType value)
void SetComponentType(ComponentType value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentInfo & WithSid(SidT &&value)
AWS_SSMSAP_API ComponentInfo()=default
ComponentType GetComponentType() const
void SetEc2InstanceId(Ec2InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue