Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
clang-format --version
if [ -s diff_output.patch ]; then
python3 clang-format-diff.py -p1 -style=file:.github/workflows/.clang-format < diff_output.patch > formatted_differences.patch 2> error.log || true
python3 clang-format-diff.py -p1 -style=file:.clang-format < diff_output.patch > formatted_differences.patch 2> error.log || true
if [ -s error.log ]; then
echo "Errors from clang-format-diff.py:"
cat error.log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -196,10 +198,10 @@ namespace Model
* individual checksum, Amazon S3 ignores any provided
* <code>ChecksumAlgorithm</code> parameter.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline DeleteObjectsRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline DeleteObjectsRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -240,11 +242,9 @@ namespace Model
Aws::String m_expectedBucketOwner;
bool m_expectedBucketOwnerHasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ namespace Model

AWS_S3CRT_API Aws::Vector<Aws::String> GetResponseChecksumAlgorithmNames() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -455,12 +457,12 @@ namespace Model
* and encrypted with an Key Management Service (KMS) key, you must have permission
* to use the <code>kms:Decrypt</code> action to retrieve the checksum.</p>
*/
inline const ChecksumMode& GetChecksumMode() const{ return m_checksumMode; }
inline bool ChecksumModeHasBeenSet() const { return m_checksumModeHasBeenSet; }
inline void SetChecksumMode(const ChecksumMode& value) { m_checksumModeHasBeenSet = true; m_checksumMode = value; }
inline void SetChecksumMode(ChecksumMode&& value) { m_checksumModeHasBeenSet = true; m_checksumMode = std::move(value); }
inline ChecksumMode GetChecksumMode() const{ return ChecksumModeMapper::GetChecksumModeForName(Client::Checksum::NameForMode(m_checksumInfo.GetShouldValidateResponse())); }
inline bool ChecksumModeHasBeenSet() const { return m_checksumInfo.GetShouldValidateResponse() != Client::Checksum::ChecksumMode::NOT_SET; }
inline void SetChecksumMode(const ChecksumMode& value) { m_checksumInfo.SetShouldValidateResponse(Client::Checksum::ModeForName(ChecksumModeMapper::GetNameForChecksumMode(value))); }
inline void SetChecksumMode(ChecksumMode&& value) { m_checksumInfo.SetShouldValidateResponse(Client::Checksum::ModeForName(ChecksumModeMapper::GetNameForChecksumMode(value))); }
inline GetObjectRequest& WithChecksumMode(const ChecksumMode& value) { SetChecksumMode(value); return *this;}
inline GetObjectRequest& WithChecksumMode(ChecksumMode&& value) { SetChecksumMode(std::move(value)); return *this;}
inline GetObjectRequest& WithChecksumMode(ChecksumMode&& value) { SetChecksumMode(value); return *this;}
///@}

///@{
Expand Down Expand Up @@ -541,11 +543,9 @@ namespace Model
Aws::String m_expectedBucketOwner;
bool m_expectedBucketOwnerHasBeenSet = false;

ChecksumMode m_checksumMode;
bool m_checksumModeHasBeenSet = false;

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -105,10 +107,10 @@ namespace Model
* an individual checksum, Amazon S3 ignores any provided
* <code>ChecksumAlgorithm</code> parameter.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline PutBucketAccelerateConfigurationRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline PutBucketAccelerateConfigurationRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -140,11 +142,9 @@ namespace Model
Aws::String m_expectedBucketOwner;
bool m_expectedBucketOwnerHasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -122,10 +124,10 @@ namespace Model
* an individual checksum, Amazon S3 ignores any provided
* <code>ChecksumAlgorithm</code> parameter.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline PutBucketAclRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline PutBucketAclRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -249,9 +251,6 @@ namespace Model
Aws::String m_contentMD5;
bool m_contentMD5HasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

Aws::String m_grantFullControl;
bool m_grantFullControlHasBeenSet = false;

Expand All @@ -272,6 +271,7 @@ namespace Model

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -111,10 +113,10 @@ namespace Model
* an individual checksum, Amazon S3 ignores any provided
* <code>ChecksumAlgorithm</code> parameter.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline PutBucketCorsRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline PutBucketCorsRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -162,14 +164,12 @@ namespace Model
Aws::String m_contentMD5;
bool m_contentMD5HasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

Aws::String m_expectedBucketOwner;
bool m_expectedBucketOwnerHasBeenSet = false;

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -108,10 +110,10 @@ namespace Model
* when you use Amazon Web Services SDKs, <code>CRC32</code> is the default
* checksum algorithm that's used for performance.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline PutBucketEncryptionRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline PutBucketEncryptionRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -169,9 +171,6 @@ namespace Model
Aws::String m_contentMD5;
bool m_contentMD5HasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
bool m_serverSideEncryptionConfigurationHasBeenSet = false;

Expand All @@ -180,6 +179,7 @@ namespace Model

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ namespace Model
AWS_S3CRT_API bool HasEmbeddedError(IOStream &body, const Http::HeaderValueCollection &header) const override;
AWS_S3CRT_API Aws::String GetChecksumAlgorithmName() const override;

AWS_S3CRT_API Aws::Crt::Optional<Aws::Client::Checksum::ChecksumInfo> GetChecksumInfo() const override;

/**
* Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation.
*/
Expand Down Expand Up @@ -78,10 +80,10 @@ namespace Model
* an individual checksum, Amazon S3 ignores any provided
* <code>ChecksumAlgorithm</code> parameter.</p>
*/
inline const ChecksumAlgorithm& GetChecksumAlgorithm() const{ return m_checksumAlgorithm; }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumAlgorithmHasBeenSet; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = value; }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumAlgorithmHasBeenSet = true; m_checksumAlgorithm = std::move(value); }
inline ChecksumAlgorithm GetChecksumAlgorithm() const{ return ChecksumAlgorithmMapper::GetChecksumAlgorithmForName(Aws::Utils::StringUtils::ToUpper(Client::Checksum::NameForAlgorithm(m_checksumInfo.GetChecksumAlgorithm()).c_str())); }
inline bool ChecksumAlgorithmHasBeenSet() const { return m_checksumInfo.GetChecksumAlgorithm() != Client::Checksum::ChecksumAlgorithm::NOT_SET; }
inline void SetChecksumAlgorithm(const ChecksumAlgorithm& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline void SetChecksumAlgorithm(ChecksumAlgorithm&& value) { m_checksumInfo.SetChecksumAlgorithm(Client::Checksum::AlgorithmForName(Aws::Utils::StringUtils::ToLower(ChecksumAlgorithmMapper::GetNameForChecksumAlgorithm(value).c_str()))); }
inline PutBucketLifecycleConfigurationRequest& WithChecksumAlgorithm(const ChecksumAlgorithm& value) { SetChecksumAlgorithm(value); return *this;}
inline PutBucketLifecycleConfigurationRequest& WithChecksumAlgorithm(ChecksumAlgorithm&& value) { SetChecksumAlgorithm(std::move(value)); return *this;}
///@}
Expand Down Expand Up @@ -157,9 +159,6 @@ namespace Model
Aws::String m_bucket;
bool m_bucketHasBeenSet = false;

ChecksumAlgorithm m_checksumAlgorithm;
bool m_checksumAlgorithmHasBeenSet = false;

BucketLifecycleConfiguration m_lifecycleConfiguration;
bool m_lifecycleConfigurationHasBeenSet = false;

Expand All @@ -171,6 +170,7 @@ namespace Model

Aws::Map<Aws::String, Aws::String> m_customizedAccessLogTag;
bool m_customizedAccessLogTagHasBeenSet = false;
Aws::Client::Checksum::ChecksumInfo m_checksumInfo{};
};

} // namespace Model
Expand Down
Loading
Loading