AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
S3ArtifactLocation.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodePipeline {
20namespace Model {
21
29 public:
30 AWS_CODEPIPELINE_API S3ArtifactLocation() = default;
31 AWS_CODEPIPELINE_API S3ArtifactLocation(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBucketName() const { return m_bucketName; }
40 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
41 template <typename BucketNameT = Aws::String>
42 void SetBucketName(BucketNameT&& value) {
43 m_bucketNameHasBeenSet = true;
44 m_bucketName = std::forward<BucketNameT>(value);
45 }
46 template <typename BucketNameT = Aws::String>
47 S3ArtifactLocation& WithBucketName(BucketNameT&& value) {
48 SetBucketName(std::forward<BucketNameT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetObjectKey() const { return m_objectKey; }
59 inline bool ObjectKeyHasBeenSet() const { return m_objectKeyHasBeenSet; }
60 template <typename ObjectKeyT = Aws::String>
61 void SetObjectKey(ObjectKeyT&& value) {
62 m_objectKeyHasBeenSet = true;
63 m_objectKey = std::forward<ObjectKeyT>(value);
64 }
65 template <typename ObjectKeyT = Aws::String>
66 S3ArtifactLocation& WithObjectKey(ObjectKeyT&& value) {
67 SetObjectKey(std::forward<ObjectKeyT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_bucketName;
73
74 Aws::String m_objectKey;
75 bool m_bucketNameHasBeenSet = false;
76 bool m_objectKeyHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CodePipeline
81} // namespace Aws
S3ArtifactLocation & WithBucketName(BucketNameT &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEPIPELINE_API S3ArtifactLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEPIPELINE_API S3ArtifactLocation()=default
AWS_CODEPIPELINE_API S3ArtifactLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
S3ArtifactLocation & WithObjectKey(ObjectKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue