AWS SDK for C++

AWS SDK for C++ Version 1.11.689

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace PrometheusService {
20namespace Model {
21
30 public:
31 AWS_PROMETHEUSSERVICE_API RoleConfiguration() = default;
32 AWS_PROMETHEUSSERVICE_API RoleConfiguration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_PROMETHEUSSERVICE_API RoleConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PROMETHEUSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetSourceRoleArn() const { return m_sourceRoleArn; }
45 inline bool SourceRoleArnHasBeenSet() const { return m_sourceRoleArnHasBeenSet; }
46 template <typename SourceRoleArnT = Aws::String>
47 void SetSourceRoleArn(SourceRoleArnT&& value) {
48 m_sourceRoleArnHasBeenSet = true;
49 m_sourceRoleArn = std::forward<SourceRoleArnT>(value);
50 }
51 template <typename SourceRoleArnT = Aws::String>
52 RoleConfiguration& WithSourceRoleArn(SourceRoleArnT&& value) {
53 SetSourceRoleArn(std::forward<SourceRoleArnT>(value));
54 return *this;
55 }
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) {
70 m_targetRoleArnHasBeenSet = true;
71 m_targetRoleArn = std::forward<TargetRoleArnT>(value);
72 }
73 template <typename TargetRoleArnT = Aws::String>
74 RoleConfiguration& WithTargetRoleArn(TargetRoleArnT&& value) {
75 SetTargetRoleArn(std::forward<TargetRoleArnT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_sourceRoleArn;
81 bool m_sourceRoleArnHasBeenSet = false;
82
83 Aws::String m_targetRoleArn;
84 bool m_targetRoleArnHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace PrometheusService
89} // 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