AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentInfo.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/ssm-sap/model/ComponentType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 SsmSap
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SSMSAP_API ComponentInfo() = default;
37 AWS_SSMSAP_API ComponentInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline ComponentType GetComponentType() const { return m_componentType; }
48 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
49 inline void SetComponentType(ComponentType value) { m_componentTypeHasBeenSet = true; m_componentType = value; }
50 inline ComponentInfo& WithComponentType(ComponentType value) { SetComponentType(value); return *this;}
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) { m_sidHasBeenSet = true; m_sid = std::forward<SidT>(value); }
62 template<typename SidT = Aws::String>
63 ComponentInfo& WithSid(SidT&& value) { SetSid(std::forward<SidT>(value)); return *this;}
65
67
71 inline const Aws::String& GetEc2InstanceId() const { return m_ec2InstanceId; }
72 inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; }
73 template<typename Ec2InstanceIdT = Aws::String>
74 void SetEc2InstanceId(Ec2InstanceIdT&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value); }
75 template<typename Ec2InstanceIdT = Aws::String>
76 ComponentInfo& WithEc2InstanceId(Ec2InstanceIdT&& value) { SetEc2InstanceId(std::forward<Ec2InstanceIdT>(value)); return *this;}
78 private:
79
81 bool m_componentTypeHasBeenSet = false;
82
83 Aws::String m_sid;
84 bool m_sidHasBeenSet = false;
85
86 Aws::String m_ec2InstanceId;
87 bool m_ec2InstanceIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace SsmSap
92} // 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