AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ContainerProvider.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/model/ContainerProviderType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/emr-containers/model/ContainerInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EMRContainers
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EMRCONTAINERS_API ContainerProvider() = default;
37 AWS_EMRCONTAINERS_API ContainerProvider(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EMRCONTAINERS_API ContainerProvider& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline ContainerProviderType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(ContainerProviderType value) { m_typeHasBeenSet = true; m_type = value; }
50 inline ContainerProvider& WithType(ContainerProviderType value) { SetType(value); return *this;}
52
54
57 inline const Aws::String& GetId() const { return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 template<typename IdT = Aws::String>
60 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
61 template<typename IdT = Aws::String>
62 ContainerProvider& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
64
66
69 inline const ContainerInfo& GetInfo() const { return m_info; }
70 inline bool InfoHasBeenSet() const { return m_infoHasBeenSet; }
71 template<typename InfoT = ContainerInfo>
72 void SetInfo(InfoT&& value) { m_infoHasBeenSet = true; m_info = std::forward<InfoT>(value); }
73 template<typename InfoT = ContainerInfo>
74 ContainerProvider& WithInfo(InfoT&& value) { SetInfo(std::forward<InfoT>(value)); return *this;}
76 private:
77
79 bool m_typeHasBeenSet = false;
80
81 Aws::String m_id;
82 bool m_idHasBeenSet = false;
83
84 ContainerInfo m_info;
85 bool m_infoHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace EMRContainers
90} // namespace Aws
ContainerProvider & WithId(IdT &&value)
AWS_EMRCONTAINERS_API ContainerProvider(Aws::Utils::Json::JsonView jsonValue)
AWS_EMRCONTAINERS_API ContainerProvider()=default
ContainerProvider & WithType(ContainerProviderType value)
ContainerProvider & WithInfo(InfoT &&value)
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(ContainerProviderType value)
AWS_EMRCONTAINERS_API ContainerProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue