AWS SDK for C++  1.9.107
AWS SDK for C++
UpdateAutomaticTapeCreationPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateAutomaticTapeCreationPolicy"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::Vector<AutomaticTapeCreationRule>& GetAutomaticTapeCreationRules() const{ return m_automaticTapeCreationRules; }
45 
51  inline bool AutomaticTapeCreationRulesHasBeenSet() const { return m_automaticTapeCreationRulesHasBeenSet; }
52 
58  inline void SetAutomaticTapeCreationRules(const Aws::Vector<AutomaticTapeCreationRule>& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules = value; }
59 
65  inline void SetAutomaticTapeCreationRules(Aws::Vector<AutomaticTapeCreationRule>&& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules = std::move(value); }
66 
72  inline UpdateAutomaticTapeCreationPolicyRequest& WithAutomaticTapeCreationRules(const Aws::Vector<AutomaticTapeCreationRule>& value) { SetAutomaticTapeCreationRules(value); return *this;}
73 
79  inline UpdateAutomaticTapeCreationPolicyRequest& WithAutomaticTapeCreationRules(Aws::Vector<AutomaticTapeCreationRule>&& value) { SetAutomaticTapeCreationRules(std::move(value)); return *this;}
80 
86  inline UpdateAutomaticTapeCreationPolicyRequest& AddAutomaticTapeCreationRules(const AutomaticTapeCreationRule& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules.push_back(value); return *this; }
87 
93  inline UpdateAutomaticTapeCreationPolicyRequest& AddAutomaticTapeCreationRules(AutomaticTapeCreationRule&& value) { m_automaticTapeCreationRulesHasBeenSet = true; m_automaticTapeCreationRules.push_back(std::move(value)); return *this; }
94 
95 
96 
97  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
98 
99 
100  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
101 
102 
103  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
104 
105 
106  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
107 
108 
109  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
110 
111 
112  inline UpdateAutomaticTapeCreationPolicyRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
113 
114 
115  inline UpdateAutomaticTapeCreationPolicyRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
116 
117 
118  inline UpdateAutomaticTapeCreationPolicyRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
119 
120  private:
121 
122  Aws::Vector<AutomaticTapeCreationRule> m_automaticTapeCreationRules;
123  bool m_automaticTapeCreationRulesHasBeenSet;
124 
125  Aws::String m_gatewayARN;
126  bool m_gatewayARNHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace StorageGateway
131 } // namespace Aws
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SetAutomaticTapeCreationRules
void SetAutomaticTapeCreationRules(const Aws::Vector< AutomaticTapeCreationRule > &value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:58
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:103
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::GetAutomaticTapeCreationRules
const Aws::Vector< AutomaticTapeCreationRule > & GetAutomaticTapeCreationRules() const
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:44
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:100
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:32
AWSVector.h
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::AddAutomaticTapeCreationRules
UpdateAutomaticTapeCreationPolicyRequest & AddAutomaticTapeCreationRules(const AutomaticTapeCreationRule &value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:86
Aws::StorageGateway::Model::AutomaticTapeCreationRule
Definition: AutomaticTapeCreationRule.h:36
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::WithAutomaticTapeCreationRules
UpdateAutomaticTapeCreationPolicyRequest & WithAutomaticTapeCreationRules(Aws::Vector< AutomaticTapeCreationRule > &&value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:79
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::AutomaticTapeCreationRulesHasBeenSet
bool AutomaticTapeCreationRulesHasBeenSet() const
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:51
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SetAutomaticTapeCreationRules
void SetAutomaticTapeCreationRules(Aws::Vector< AutomaticTapeCreationRule > &&value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:65
AutomaticTapeCreationRule.h
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:109
AWSString.h
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::WithGatewayARN
UpdateAutomaticTapeCreationPolicyRequest & WithGatewayARN(Aws::String &&value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:115
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::UpdateAutomaticTapeCreationPolicyRequest
UpdateAutomaticTapeCreationPolicyRequest()
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::WithGatewayARN
UpdateAutomaticTapeCreationPolicyRequest & WithGatewayARN(const Aws::String &value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:112
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:97
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:24
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::AddAutomaticTapeCreationRules
UpdateAutomaticTapeCreationPolicyRequest & AddAutomaticTapeCreationRules(AutomaticTapeCreationRule &&value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:93
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::WithGatewayARN
UpdateAutomaticTapeCreationPolicyRequest & WithGatewayARN(const char *value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:118
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:106
Aws::StorageGateway::Model::UpdateAutomaticTapeCreationPolicyRequest::WithAutomaticTapeCreationRules
UpdateAutomaticTapeCreationPolicyRequest & WithAutomaticTapeCreationRules(const Aws::Vector< AutomaticTapeCreationRule > &value)
Definition: UpdateAutomaticTapeCreationPolicyRequest.h:72