AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Association.h
1
6#pragma once
7#include <aws/braket/Braket_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/braket/model/AssociationType.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 Braket
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BRAKET_API Association();
37 AWS_BRAKET_API Association(Aws::Utils::Json::JsonView jsonValue);
39 AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline Association& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline Association& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline Association& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const AssociationType& GetType() const{ return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(const AssociationType& value) { m_typeHasBeenSet = true; m_type = value; }
63 inline void SetType(AssociationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
64 inline Association& WithType(const AssociationType& value) { SetType(value); return *this;}
65 inline Association& WithType(AssociationType&& value) { SetType(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_arn;
70 bool m_arnHasBeenSet = false;
71
72 AssociationType m_type;
73 bool m_typeHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Braket
78} // namespace Aws
Association & WithArn(const Aws::String &value)
Definition Association.h:51
AWS_BRAKET_API Association(Aws::Utils::Json::JsonView jsonValue)
Association & WithType(AssociationType &&value)
Definition Association.h:65
void SetType(const AssociationType &value)
Definition Association.h:62
AWS_BRAKET_API Association & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(AssociationType &&value)
Definition Association.h:63
Association & WithType(const AssociationType &value)
Definition Association.h:64
Association & WithArn(const char *value)
Definition Association.h:53
const Aws::String & GetArn() const
Definition Association.h:46
void SetArn(const Aws::String &value)
Definition Association.h:48
const AssociationType & GetType() const
Definition Association.h:60
AWS_BRAKET_API Aws::Utils::Json::JsonValue Jsonize() const
Association & WithArn(Aws::String &&value)
Definition Association.h:52
void SetArn(const char *value)
Definition Association.h:50
void SetArn(Aws::String &&value)
Definition Association.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue