304 lines
16 KiB
C
304 lines
16 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|||
|
|
#include <aws/iam/IAMRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace IAM
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_IAM_API UpdateServerCertificateRequest : public IAMRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
UpdateServerCertificateRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateServerCertificate"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
protected:
|
|||
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetServerCertificateName() const{ return m_serverCertificateName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ServerCertificateNameHasBeenSet() const { return m_serverCertificateNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetServerCertificateName(const Aws::String& value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetServerCertificateName(Aws::String&& value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetServerCertificateName(const char* value) { m_serverCertificateNameHasBeenSet = true; m_serverCertificateName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithServerCertificateName(const Aws::String& value) { SetServerCertificateName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithServerCertificateName(Aws::String&& value) { SetServerCertificateName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the server certificate that you want to update.</p> <p>This
|
|||
|
|
* parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex
|
|||
|
|
* pattern</a>) a string of characters consisting of upper and lowercase
|
|||
|
|
* alphanumeric characters with no spaces. You can also include any of the
|
|||
|
|
* following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithServerCertificateName(const char* value) { SetServerCertificateName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNewPath() const{ return m_newPath; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NewPathHasBeenSet() const { return m_newPathHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewPath(const Aws::String& value) { m_newPathHasBeenSet = true; m_newPath = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewPath(Aws::String&& value) { m_newPathHasBeenSet = true; m_newPath = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewPath(const char* value) { m_newPathHasBeenSet = true; m_newPath.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewPath(const Aws::String& value) { SetNewPath(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewPath(Aws::String&& value) { SetNewPath(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new path for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's path.</p> <p>This parameter allows (through
|
|||
|
|
* its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of
|
|||
|
|
* characters consisting of either a forward slash (/) by itself or a string that
|
|||
|
|
* must begin and end with forward slashes. In addition, it can contain any ASCII
|
|||
|
|
* character from the ! (<code>\u0021</code>) through the DEL character
|
|||
|
|
* (<code>\u007F</code>), including most punctuation characters, digits, and upper
|
|||
|
|
* and lowercased letters.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewPath(const char* value) { SetNewPath(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetNewServerCertificateName() const{ return m_newServerCertificateName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NewServerCertificateNameHasBeenSet() const { return m_newServerCertificateNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewServerCertificateName(const Aws::String& value) { m_newServerCertificateNameHasBeenSet = true; m_newServerCertificateName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewServerCertificateName(Aws::String&& value) { m_newServerCertificateNameHasBeenSet = true; m_newServerCertificateName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetNewServerCertificateName(const char* value) { m_newServerCertificateNameHasBeenSet = true; m_newServerCertificateName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewServerCertificateName(const Aws::String& value) { SetNewServerCertificateName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewServerCertificateName(Aws::String&& value) { SetNewServerCertificateName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The new name for the server certificate. Include this only if you are
|
|||
|
|
* updating the server certificate's name. The name of the certificate cannot
|
|||
|
|
* contain any spaces.</p> <p>This parameter allows (through its <a
|
|||
|
|
* href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters
|
|||
|
|
* consisting of upper and lowercase alphanumeric characters with no spaces. You
|
|||
|
|
* can also include any of the following characters: _+=,.@-</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateServerCertificateRequest& WithNewServerCertificateName(const char* value) { SetNewServerCertificateName(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_serverCertificateName;
|
|||
|
|
bool m_serverCertificateNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_newPath;
|
|||
|
|
bool m_newPathHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_newServerCertificateName;
|
|||
|
|
bool m_newServerCertificateNameHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IAM
|
|||
|
|
} // namespace Aws
|