AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RoleConfiguration.h
1
6#pragma once
7#include <aws/amp/PrometheusService_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 PrometheusService
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_PROMETHEUSSERVICE_API RoleConfiguration() = default;
37 AWS_PROMETHEUSSERVICE_API RoleConfiguration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PROMETHEUSSERVICE_API RoleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
50 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
51 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
52 template<typename SourceRoleArnT = Aws::String>
53 void SetSourceRoleArn(SourceRoleArnT&& value) { m_sourceRoleArnHasBeenSet = true; m_sourceRoleArn = std::forward<SourceRoleArnT>(value); }
54 template<typename SourceRoleArnT = Aws::String>
55 RoleConfiguration& WithSourceRoleArn(SourceRoleArnT&& value) { SetSourceRoleArn(std::forward<SourceRoleArnT>(value)); return *this;}
57
59
66 inline const Aws::String& GetTargetRoleArn() const { return m_targetRoleArn; }
67 inline bool TargetRoleArnHasBeenSet() const { return m_targetRoleArnHasBeenSet; }
68 template<typename TargetRoleArnT = Aws::String>
69 void SetTargetRoleArn(TargetRoleArnT&& value) { m_targetRoleArnHasBeenSet = true; m_targetRoleArn = std::forward<TargetRoleArnT>(value); }
70 template<typename TargetRoleArnT = Aws::String>
71 RoleConfiguration& WithTargetRoleArn(TargetRoleArnT&& value) { SetTargetRoleArn(std::forward<TargetRoleArnT>(value)); return *this;}
73 private:
74
75 Aws::String m_sourceRoleArn;
76 bool m_sourceRoleArnHasBeenSet = false;
77
78 Aws::String m_targetRoleArn;
79 bool m_targetRoleArnHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace PrometheusService
84} // namespace Aws
RoleConfiguration & WithSourceRoleArn(SourceRoleArnT &&value)
AWS_PROMETHEUSSERVICE_API RoleConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RoleConfiguration & WithTargetRoleArn(TargetRoleArnT &&value)
AWS_PROMETHEUSSERVICE_API RoleConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_PROMETHEUSSERVICE_API RoleConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue