AWS SDK for C++  0.12.9
AWS SDK for C++
TestRoleRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace ElasticTranscoder
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
41  inline const Aws::String& GetRole() const{ return m_role; }
42 
47  inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
48 
53  inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = value; }
54 
59  inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
60 
65  inline TestRoleRequest& WithRole(const Aws::String& value) { SetRole(value); return *this;}
66 
71  inline TestRoleRequest& WithRole(Aws::String&& value) { SetRole(value); return *this;}
72 
77  inline TestRoleRequest& WithRole(const char* value) { SetRole(value); return *this;}
78 
83  inline const Aws::String& GetInputBucket() const{ return m_inputBucket; }
84 
89  inline void SetInputBucket(const Aws::String& value) { m_inputBucketHasBeenSet = true; m_inputBucket = value; }
90 
95  inline void SetInputBucket(Aws::String&& value) { m_inputBucketHasBeenSet = true; m_inputBucket = value; }
96 
101  inline void SetInputBucket(const char* value) { m_inputBucketHasBeenSet = true; m_inputBucket.assign(value); }
102 
107  inline TestRoleRequest& WithInputBucket(const Aws::String& value) { SetInputBucket(value); return *this;}
108 
113  inline TestRoleRequest& WithInputBucket(Aws::String&& value) { SetInputBucket(value); return *this;}
114 
119  inline TestRoleRequest& WithInputBucket(const char* value) { SetInputBucket(value); return *this;}
120 
125  inline const Aws::String& GetOutputBucket() const{ return m_outputBucket; }
126 
131  inline void SetOutputBucket(const Aws::String& value) { m_outputBucketHasBeenSet = true; m_outputBucket = value; }
132 
137  inline void SetOutputBucket(Aws::String&& value) { m_outputBucketHasBeenSet = true; m_outputBucket = value; }
138 
143  inline void SetOutputBucket(const char* value) { m_outputBucketHasBeenSet = true; m_outputBucket.assign(value); }
144 
149  inline TestRoleRequest& WithOutputBucket(const Aws::String& value) { SetOutputBucket(value); return *this;}
150 
155  inline TestRoleRequest& WithOutputBucket(Aws::String&& value) { SetOutputBucket(value); return *this;}
156 
161  inline TestRoleRequest& WithOutputBucket(const char* value) { SetOutputBucket(value); return *this;}
162 
167  inline const Aws::Vector<Aws::String>& GetTopics() const{ return m_topics; }
168 
173  inline void SetTopics(const Aws::Vector<Aws::String>& value) { m_topicsHasBeenSet = true; m_topics = value; }
174 
179  inline void SetTopics(Aws::Vector<Aws::String>&& value) { m_topicsHasBeenSet = true; m_topics = value; }
180 
185  inline TestRoleRequest& WithTopics(const Aws::Vector<Aws::String>& value) { SetTopics(value); return *this;}
186 
191  inline TestRoleRequest& WithTopics(Aws::Vector<Aws::String>&& value) { SetTopics(value); return *this;}
192 
197  inline TestRoleRequest& AddTopics(const Aws::String& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
198 
203  inline TestRoleRequest& AddTopics(Aws::String&& value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
204 
209  inline TestRoleRequest& AddTopics(const char* value) { m_topicsHasBeenSet = true; m_topics.push_back(value); return *this; }
210 
211  private:
212  Aws::String m_role;
213  bool m_roleHasBeenSet;
214  Aws::String m_inputBucket;
215  bool m_inputBucketHasBeenSet;
216  Aws::String m_outputBucket;
217  bool m_outputBucketHasBeenSet;
218  Aws::Vector<Aws::String> m_topics;
219  bool m_topicsHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace ElasticTranscoder
224 } // namespace Aws
TestRoleRequest & WithOutputBucket(const Aws::String &value)
void SetInputBucket(const Aws::String &value)
void SetTopics(Aws::Vector< Aws::String > &&value)
TestRoleRequest & AddTopics(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
const Aws::String & GetOutputBucket() const
TestRoleRequest & WithInputBucket(const Aws::String &value)
const Aws::String & GetInputBucket() const
TestRoleRequest & WithRole(const char *value)
TestRoleRequest & AddTopics(const char *value)
TestRoleRequest & WithInputBucket(const char *value)
TestRoleRequest & WithRole(const Aws::String &value)
TestRoleRequest & WithRole(Aws::String &&value)
TestRoleRequest & WithInputBucket(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTopics() const
TestRoleRequest & WithOutputBucket(Aws::String &&value)
void SetTopics(const Aws::Vector< Aws::String > &value)
#define AWS_ELASTICTRANSCODER_API
void SetRole(const Aws::String &value)
TestRoleRequest & WithTopics(Aws::Vector< Aws::String > &&value)
void SetOutputBucket(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TestRoleRequest & WithTopics(const Aws::Vector< Aws::String > &value)
TestRoleRequest & AddTopics(Aws::String &&value)
TestRoleRequest & WithOutputBucket(const char *value)
JSON (JavaScript Object Notation).