Class OperationContractProperties
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.OperationEntityBaseContract
-
- com.azure.resourcemanager.apimanagement.fluent.models.OperationContractProperties
-
public final class OperationContractProperties extends OperationEntityBaseContract
Operation Contract Properties.
-
-
Constructor Summary
Constructors Constructor Description OperationContractProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
displayName()
Get the displayName property: Operation Name.String
method()
Get the method property: A Valid HTTP Operation Method.String
urlTemplate()
Get the urlTemplate property: Relative URL template identifying the target resource for this operation.void
validate()
Validates the instance.OperationContractProperties
withDescription(String description)
Set the description property: Description of the operation.OperationContractProperties
withDisplayName(String displayName)
Set the displayName property: Operation Name.OperationContractProperties
withMethod(String method)
Set the method property: A Valid HTTP Operation Method.OperationContractProperties
withPolicies(String policies)
Set the policies property: Operation Policies.OperationContractProperties
withRequest(RequestContract request)
Set the request property: An entity containing request details.OperationContractProperties
withResponses(List<ResponseContract> responses)
Set the responses property: Array of Operation responses.OperationContractProperties
withTemplateParameters(List<ParameterContract> templateParameters)
Set the templateParameters property: Collection of URL template parameters.OperationContractProperties
withUrlTemplate(String urlTemplate)
Set the urlTemplate property: Relative URL template identifying the target resource for this operation.-
Methods inherited from class com.azure.resourcemanager.apimanagement.models.OperationEntityBaseContract
description, policies, request, responses, templateParameters
-
-
-
-
Method Detail
-
displayName
public String displayName()
Get the displayName property: Operation Name.- Returns:
- the displayName value.
-
withDisplayName
public OperationContractProperties withDisplayName(String displayName)
Set the displayName property: Operation Name.- Parameters:
displayName
- the displayName value to set.- Returns:
- the OperationContractProperties object itself.
-
method
public String method()
Get the method property: A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.- Returns:
- the method value.
-
withMethod
public OperationContractProperties withMethod(String method)
Set the method property: A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.- Parameters:
method
- the method value to set.- Returns:
- the OperationContractProperties object itself.
-
urlTemplate
public String urlTemplate()
Get the urlTemplate property: Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.- Returns:
- the urlTemplate value.
-
withUrlTemplate
public OperationContractProperties withUrlTemplate(String urlTemplate)
Set the urlTemplate property: Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}.- Parameters:
urlTemplate
- the urlTemplate value to set.- Returns:
- the OperationContractProperties object itself.
-
withTemplateParameters
public OperationContractProperties withTemplateParameters(List<ParameterContract> templateParameters)
Set the templateParameters property: Collection of URL template parameters.- Overrides:
withTemplateParameters
in classOperationEntityBaseContract
- Parameters:
templateParameters
- the templateParameters value to set.- Returns:
- the OperationEntityBaseContract object itself.
-
withDescription
public OperationContractProperties withDescription(String description)
Set the description property: Description of the operation. May include HTML formatting tags.- Overrides:
withDescription
in classOperationEntityBaseContract
- Parameters:
description
- the description value to set.- Returns:
- the OperationEntityBaseContract object itself.
-
withRequest
public OperationContractProperties withRequest(RequestContract request)
Set the request property: An entity containing request details.- Overrides:
withRequest
in classOperationEntityBaseContract
- Parameters:
request
- the request value to set.- Returns:
- the OperationEntityBaseContract object itself.
-
withResponses
public OperationContractProperties withResponses(List<ResponseContract> responses)
Set the responses property: Array of Operation responses.- Overrides:
withResponses
in classOperationEntityBaseContract
- Parameters:
responses
- the responses value to set.- Returns:
- the OperationEntityBaseContract object itself.
-
withPolicies
public OperationContractProperties withPolicies(String policies)
Set the policies property: Operation Policies.- Overrides:
withPolicies
in classOperationEntityBaseContract
- Parameters:
policies
- the policies value to set.- Returns:
- the OperationEntityBaseContract object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classOperationEntityBaseContract
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-