AWS SDK for C++  0.14.3
AWS SDK for C++
AttachmentDetails.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace Support
29 {
30 namespace Model
31 {
32 
39  {
40  public:
43  AttachmentDetails& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
50 
54  inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
55 
59  inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
60 
64  inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
65 
69  inline AttachmentDetails& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
70 
74  inline AttachmentDetails& WithAttachmentId(Aws::String&& value) { SetAttachmentId(value); return *this;}
75 
79  inline AttachmentDetails& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
80 
84  inline const Aws::String& GetFileName() const{ return m_fileName; }
85 
89  inline void SetFileName(const Aws::String& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
90 
94  inline void SetFileName(Aws::String&& value) { m_fileNameHasBeenSet = true; m_fileName = value; }
95 
99  inline void SetFileName(const char* value) { m_fileNameHasBeenSet = true; m_fileName.assign(value); }
100 
104  inline AttachmentDetails& WithFileName(const Aws::String& value) { SetFileName(value); return *this;}
105 
109  inline AttachmentDetails& WithFileName(Aws::String&& value) { SetFileName(value); return *this;}
110 
114  inline AttachmentDetails& WithFileName(const char* value) { SetFileName(value); return *this;}
115 
116  private:
117  Aws::String m_attachmentId;
118  bool m_attachmentIdHasBeenSet;
119  Aws::String m_fileName;
120  bool m_fileNameHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Support
125 } // namespace Aws
AttachmentDetails & WithFileName(Aws::String &&value)
AttachmentDetails & WithFileName(const char *value)
void SetAttachmentId(const Aws::String &value)
void SetFileName(Aws::String &&value)
AttachmentDetails & WithAttachmentId(const Aws::String &value)
AttachmentDetails & WithFileName(const Aws::String &value)
AttachmentDetails & WithAttachmentId(const char *value)
#define AWS_SUPPORT_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetFileName(const Aws::String &value)
const Aws::String & GetAttachmentId() const
const Aws::String & GetFileName() const
void SetAttachmentId(Aws::String &&value)
JSON (JavaScript Object Notation).
AttachmentDetails & WithAttachmentId(Aws::String &&value)