AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutomaticTapeCreationPolicyInfo.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/storagegateway/model/AutomaticTapeCreationRule.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 StorageGateway
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_STORAGEGATEWAY_API AutomaticTapeCreationPolicyInfo();
41 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<AutomaticTapeCreationRule>& GetAutomaticTapeCreationRules() const{ return m_automaticTapeCreationRules; }
51 inline bool AutomaticTapeCreationRulesHasBeenSet() const { return m_automaticTapeCreationRulesHasBeenSet; }
52 inline void SetAutomaticTapeCreationRules(const Aws::Vector<AutomaticTapeCreationRule>& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules = value; }
53 inline void SetAutomaticTapeCreationRules(Aws::Vector<AutomaticTapeCreationRule>&& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules = std::move(value); }
56 inline AutomaticTapeCreationPolicyInfo& AddAutomaticTapeCreationRules(const AutomaticTapeCreationRule& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules.push_back(value); return *this; }
57 inline AutomaticTapeCreationPolicyInfo& AddAutomaticTapeCreationRules(AutomaticTapeCreationRule&& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules.push_back(std::move(value)); return *this; }
59
61
62 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
63 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
64 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
65 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
66 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
67 inline AutomaticTapeCreationPolicyInfo& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
68 inline AutomaticTapeCreationPolicyInfo& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
69 inline AutomaticTapeCreationPolicyInfo& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
71 private:
72
73 Aws::Vector<AutomaticTapeCreationRule> m_automaticTapeCreationRules;
74 bool m_automaticTapeCreationRulesHasBeenSet = false;
75
76 Aws::String m_gatewayARN;
77 bool m_gatewayARNHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace StorageGateway
82} // namespace Aws
AWS_STORAGEGATEWAY_API AutomaticTapeCreationPolicyInfo(Aws::Utils::Json::JsonView jsonValue)
void SetAutomaticTapeCreationRules(const Aws::Vector< AutomaticTapeCreationRule > &value)
AutomaticTapeCreationPolicyInfo & AddAutomaticTapeCreationRules(const AutomaticTapeCreationRule &value)
AutomaticTapeCreationPolicyInfo & WithAutomaticTapeCreationRules(const Aws::Vector< AutomaticTapeCreationRule > &value)
AutomaticTapeCreationPolicyInfo & WithGatewayARN(const char *value)
AutomaticTapeCreationPolicyInfo & AddAutomaticTapeCreationRules(AutomaticTapeCreationRule &&value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AutomaticTapeCreationPolicyInfo & WithGatewayARN(Aws::String &&value)
AutomaticTapeCreationPolicyInfo & WithGatewayARN(const Aws::String &value)
const Aws::Vector< AutomaticTapeCreationRule > & GetAutomaticTapeCreationRules() const
void SetAutomaticTapeCreationRules(Aws::Vector< AutomaticTapeCreationRule > &&value)
AWS_STORAGEGATEWAY_API AutomaticTapeCreationPolicyInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomaticTapeCreationPolicyInfo & WithAutomaticTapeCreationRules(Aws::Vector< AutomaticTapeCreationRule > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue