AWS SDK for C++  0.14.3
AWS SDK for C++
PutImageRequest.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
16 #include <aws/ecr/ECR_EXPORTS.h>
17 #include <aws/ecr/ECRRequest.h>
19 
20 namespace Aws
21 {
22 namespace ECR
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
49  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
50 
56  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
57 
63  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
64 
70  inline PutImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
71 
77  inline PutImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
78 
84  inline PutImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
85 
89  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
90 
94  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
95 
99  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
100 
104  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
105 
109  inline PutImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
110 
114  inline PutImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
115 
119  inline PutImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
120 
124  inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
125 
129  inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
130 
134  inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
135 
139  inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
140 
144  inline PutImageRequest& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
145 
149  inline PutImageRequest& WithImageManifest(Aws::String&& value) { SetImageManifest(value); return *this;}
150 
154  inline PutImageRequest& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
155 
156  private:
157  Aws::String m_registryId;
158  bool m_registryIdHasBeenSet;
159  Aws::String m_repositoryName;
160  bool m_repositoryNameHasBeenSet;
161  Aws::String m_imageManifest;
162  bool m_imageManifestHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace ECR
167 } // namespace Aws
void SetRegistryId(Aws::String &&value)
PutImageRequest & WithRegistryId(const Aws::String &value)
void SetRepositoryName(const Aws::String &value)
void SetRegistryId(const char *value)
void SetRepositoryName(Aws::String &&value)
PutImageRequest & WithRepositoryName(const Aws::String &value)
PutImageRequest & WithImageManifest(const char *value)
PutImageRequest & WithImageManifest(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
PutImageRequest & WithRepositoryName(Aws::String &&value)
const Aws::String & GetRegistryId() const
PutImageRequest & WithRegistryId(const char *value)
PutImageRequest & WithRegistryId(Aws::String &&value)
PutImageRequest & WithImageManifest(Aws::String &&value)
void SetImageManifest(const Aws::String &value)
const Aws::String & GetRepositoryName() const
void SetRegistryId(const Aws::String &value)
void SetRepositoryName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetImageManifest() const
void SetImageManifest(const char *value)
void SetImageManifest(Aws::String &&value)
JSON (JavaScript Object Notation).
PutImageRequest & WithRepositoryName(const char *value)