AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceAssociation.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SSM
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSM_API InstanceAssociation();
39
40
42
45 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
46 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
47 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
48 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
49 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
50 inline InstanceAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
51 inline InstanceAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
52 inline InstanceAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
54
56
59 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
60 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
61 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
62 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
63 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 inline InstanceAssociation& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
65 inline InstanceAssociation& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
66 inline InstanceAssociation& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
68
70
73 inline const Aws::String& GetContent() const{ return m_content; }
74 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
75 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
76 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
77 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
78 inline InstanceAssociation& WithContent(const Aws::String& value) { SetContent(value); return *this;}
79 inline InstanceAssociation& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
80 inline InstanceAssociation& WithContent(const char* value) { SetContent(value); return *this;}
82
84
87 inline const Aws::String& GetAssociationVersion() const{ return m_associationVersion; }
88 inline bool AssociationVersionHasBeenSet() const { return m_associationVersionHasBeenSet; }
89 inline void SetAssociationVersion(const Aws::String& value) { m_associationVersionHasBeenSet = true; m_associationVersion = value; }
90 inline void SetAssociationVersion(Aws::String&& value) { m_associationVersionHasBeenSet = true; m_associationVersion = std::move(value); }
91 inline void SetAssociationVersion(const char* value) { m_associationVersionHasBeenSet = true; m_associationVersion.assign(value); }
92 inline InstanceAssociation& WithAssociationVersion(const Aws::String& value) { SetAssociationVersion(value); return *this;}
93 inline InstanceAssociation& WithAssociationVersion(Aws::String&& value) { SetAssociationVersion(std::move(value)); return *this;}
94 inline InstanceAssociation& WithAssociationVersion(const char* value) { SetAssociationVersion(value); return *this;}
96 private:
97
98 Aws::String m_associationId;
99 bool m_associationIdHasBeenSet = false;
100
101 Aws::String m_instanceId;
102 bool m_instanceIdHasBeenSet = false;
103
104 Aws::String m_content;
105 bool m_contentHasBeenSet = false;
106
107 Aws::String m_associationVersion;
108 bool m_associationVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSM
113} // namespace Aws
void SetContent(const Aws::String &value)
void SetAssociationVersion(const char *value)
InstanceAssociation & WithAssociationVersion(const Aws::String &value)
void SetAssociationId(const Aws::String &value)
void SetAssociationId(Aws::String &&value)
const Aws::String & GetAssociationVersion() const
const Aws::String & GetInstanceId() const
void SetInstanceId(const Aws::String &value)
InstanceAssociation & WithContent(const char *value)
void SetInstanceId(Aws::String &&value)
InstanceAssociation & WithContent(const Aws::String &value)
InstanceAssociation & WithAssociationVersion(const char *value)
InstanceAssociation & WithAssociationId(const char *value)
InstanceAssociation & WithAssociationId(Aws::String &&value)
InstanceAssociation & WithContent(Aws::String &&value)
InstanceAssociation & WithAssociationId(const Aws::String &value)
AWS_SSM_API InstanceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
InstanceAssociation & WithInstanceId(const char *value)
void SetAssociationVersion(Aws::String &&value)
const Aws::String & GetAssociationId() const
InstanceAssociation & WithAssociationVersion(Aws::String &&value)
InstanceAssociation & WithInstanceId(const Aws::String &value)
InstanceAssociation & WithInstanceId(Aws::String &&value)
const Aws::String & GetContent() const
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssociationVersion(const Aws::String &value)
AWS_SSM_API InstanceAssociation(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue