AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
AuthorizedTargetsByService.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/quicksight/QuickSight_EXPORTS.h>
10#include <aws/quicksight/model/ServiceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QuickSight {
22namespace Model {
23
31 public:
32 AWS_QUICKSIGHT_API AuthorizedTargetsByService() = default;
35 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline ServiceType GetService() const { return m_service; }
42 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
43 inline void SetService(ServiceType value) {
44 m_serviceHasBeenSet = true;
45 m_service = value;
46 }
48 SetService(value);
49 return *this;
50 }
52
54
58 inline const Aws::Vector<Aws::String>& GetAuthorizedTargets() const { return m_authorizedTargets; }
59 inline bool AuthorizedTargetsHasBeenSet() const { return m_authorizedTargetsHasBeenSet; }
60 template <typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
61 void SetAuthorizedTargets(AuthorizedTargetsT&& value) {
62 m_authorizedTargetsHasBeenSet = true;
63 m_authorizedTargets = std::forward<AuthorizedTargetsT>(value);
64 }
65 template <typename AuthorizedTargetsT = Aws::Vector<Aws::String>>
67 SetAuthorizedTargets(std::forward<AuthorizedTargetsT>(value));
68 return *this;
69 }
70 template <typename AuthorizedTargetsT = Aws::String>
71 AuthorizedTargetsByService& AddAuthorizedTargets(AuthorizedTargetsT&& value) {
72 m_authorizedTargetsHasBeenSet = true;
73 m_authorizedTargets.emplace_back(std::forward<AuthorizedTargetsT>(value));
74 return *this;
75 }
77 private:
79
80 Aws::Vector<Aws::String> m_authorizedTargets;
81 bool m_serviceHasBeenSet = false;
82 bool m_authorizedTargetsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace QuickSight
87} // namespace Aws
AWS_QUICKSIGHT_API AuthorizedTargetsByService(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAuthorizedTargets() const
AuthorizedTargetsByService & AddAuthorizedTargets(AuthorizedTargetsT &&value)
AuthorizedTargetsByService & WithAuthorizedTargets(AuthorizedTargetsT &&value)
AuthorizedTargetsByService & WithService(ServiceType value)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_QUICKSIGHT_API AuthorizedTargetsByService & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API AuthorizedTargetsByService()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue