Package org.cdk8s.plus24.k8s
Class HttpHeader.Builder
- java.lang.Object
-
- org.cdk8s.plus24.k8s.HttpHeader.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpHeader>
- Enclosing interface:
- HttpHeader
@Stability(Stable) public static final class HttpHeader.Builder extends Object implements software.amazon.jsii.Builder<HttpHeader>
A builder forHttpHeader
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHeader
build()
Builds the configured instance.HttpHeader.Builder
name(String name)
Sets the value ofHttpHeader.getName()
HttpHeader.Builder
value(String value)
Sets the value ofHttpHeader.getValue()
-
-
-
Method Detail
-
name
@Stability(Stable) public HttpHeader.Builder name(String name)
Sets the value ofHttpHeader.getName()
- Parameters:
name
- The header field name. This parameter is required.- Returns:
this
-
value
@Stability(Stable) public HttpHeader.Builder value(String value)
Sets the value ofHttpHeader.getValue()
- Parameters:
value
- The header field value. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public HttpHeader build()
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<HttpHeader>
- Returns:
- a new instance of
HttpHeader
- Throws:
NullPointerException
- if any required attribute was not provided
-
-