Class RequestPolicy.Builder
java.lang.Object
software.amazon.awscdk.services.sns.RequestPolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<RequestPolicy>
- Enclosing interface:
RequestPolicy
@Stability(Stable)
public static final class RequestPolicy.Builder
extends Object
implements software.amazon.jsii.Builder<RequestPolicy>
A builder for
RequestPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.headerContentType
(String headerContentType) Sets the value ofRequestPolicy.getHeaderContentType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
headerContentType
Sets the value ofRequestPolicy.getHeaderContentType()
- Parameters:
headerContentType
- The content type of the notification being sent to HTTP/S endpoints.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<RequestPolicy>
- Returns:
- a new instance of
RequestPolicy
- Throws:
NullPointerException
- if any required attribute was not provided
-