repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.listPresets | public ListPresetsResponse listPresets(ListPresetsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
... | java | public ListPresetsResponse listPresets(ListPresetsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
... | [
"public",
"ListPresetsResponse",
"listPresets",
"(",
"ListPresetsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodName",
... | List all system and user's preset.
@param request The request object containing all options for listing presets.
@return The list of all available preset. | [
"List",
"all",
"system",
"and",
"user",
"s",
"preset",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L932-L936 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.createWaterMark | public CreateWaterMarkResponse createWaterMark(CreateWaterMarkRequest request) {
checkStringNotEmpty(request.getBucket(), "The parameter bucket should NOT be null or empty string.");
checkStringNotEmpty(request.getKey(), "The parameter key should NOT be null or empty string.");
InternalRequest i... | java | public CreateWaterMarkResponse createWaterMark(CreateWaterMarkRequest request) {
checkStringNotEmpty(request.getBucket(), "The parameter bucket should NOT be null or empty string.");
checkStringNotEmpty(request.getKey(), "The parameter key should NOT be null or empty string.");
InternalRequest i... | [
"public",
"CreateWaterMarkResponse",
"createWaterMark",
"(",
"CreateWaterMarkRequest",
"request",
")",
"{",
"checkStringNotEmpty",
"(",
"request",
".",
"getBucket",
"(",
")",
",",
"\"The parameter bucket should NOT be null or empty string.\"",
")",
";",
"checkStringNotEmpty",
... | Creates a water mark and return water mark ID
@param request The request object containing all options for creating new water mark.
@return watermarkId the unique ID of the new water mark. | [
"Creates",
"a",
"water",
"mark",
"and",
"return",
"water",
"mark",
"ID"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L1100-L1106 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/media/MediaClient.java | MediaClient.listWaterMark | public ListWaterMarkResponse listWaterMark(ListWaterMarkRequest request) {
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, WATER_MARK);
return invokeHttpClient(internalRequest, ListWaterMarkResponse.class);
} | java | public ListWaterMarkResponse listWaterMark(ListWaterMarkRequest request) {
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, WATER_MARK);
return invokeHttpClient(internalRequest, ListWaterMarkResponse.class);
} | [
"public",
"ListWaterMarkResponse",
"listWaterMark",
"(",
"ListWaterMarkRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodName",
".",
"GET",
",",
"request",
",",
"WATER_MARK",
")",
";",
"return",
"invokeHttpClient"... | List all water mark.
@return The list of all user's water mark. | [
"List",
"all",
"water",
"mark",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/media/MediaClient.java#L1151-L1155 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/ModifyInstanceGroupsRequest.java | ModifyInstanceGroupsRequest.withInstanceGroup | public ModifyInstanceGroupsRequest withInstanceGroup(ModifyInstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<ModifyInstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | java | public ModifyInstanceGroupsRequest withInstanceGroup(ModifyInstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<ModifyInstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | [
"public",
"ModifyInstanceGroupsRequest",
"withInstanceGroup",
"(",
"ModifyInstanceGroupConfig",
"instanceGroup",
")",
"{",
"if",
"(",
"this",
".",
"instanceGroups",
"==",
"null",
")",
"{",
"this",
".",
"instanceGroups",
"=",
"new",
"ArrayList",
"<",
"ModifyInstanceGro... | Configure the instance group to be modified.
@param instanceGroup an instance group config to be added.
@return ModifyInstanceGroupsRequest | [
"Configure",
"the",
"instance",
"group",
"to",
"be",
"modified",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/ModifyInstanceGroupsRequest.java#L61-L67 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java | CreateClusterRequest.withInstanceGroup | public CreateClusterRequest withInstanceGroup(InstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<InstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | java | public CreateClusterRequest withInstanceGroup(InstanceGroupConfig instanceGroup) {
if (this.instanceGroups == null) {
this.instanceGroups = new ArrayList<InstanceGroupConfig>();
}
this.instanceGroups.add(instanceGroup);
return this;
} | [
"public",
"CreateClusterRequest",
"withInstanceGroup",
"(",
"InstanceGroupConfig",
"instanceGroup",
")",
"{",
"if",
"(",
"this",
".",
"instanceGroups",
"==",
"null",
")",
"{",
"this",
".",
"instanceGroups",
"=",
"new",
"ArrayList",
"<",
"InstanceGroupConfig",
">",
... | Configure the instance group for the cluster.
@param instanceGroup An InstanceGroupConfig instance.
@return CreateClusterRequest | [
"Configure",
"the",
"instance",
"group",
"for",
"the",
"cluster",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java#L174-L180 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java | CreateClusterRequest.withStep | public CreateClusterRequest withStep(StepConfig step) {
if (this.steps == null) {
this.steps = new ArrayList<StepConfig>();
}
this.steps.add(step);
return this;
} | java | public CreateClusterRequest withStep(StepConfig step) {
if (this.steps == null) {
this.steps = new ArrayList<StepConfig>();
}
this.steps.add(step);
return this;
} | [
"public",
"CreateClusterRequest",
"withStep",
"(",
"StepConfig",
"step",
")",
"{",
"if",
"(",
"this",
".",
"steps",
"==",
"null",
")",
"{",
"this",
".",
"steps",
"=",
"new",
"ArrayList",
"<",
"StepConfig",
">",
"(",
")",
";",
"}",
"this",
".",
"steps",... | Configure optional step for the cluster. The step will be scheduled and executed after the cluster is ACTIVE.
And the step also can be added to the cluster by sending AddStepsRequest.
@param step a StepConfig instance to be added.
@return CreateClusterRequest | [
"Configure",
"optional",
"step",
"for",
"the",
"cluster",
".",
"The",
"step",
"will",
"be",
"scheduled",
"and",
"executed",
"after",
"the",
"cluster",
"is",
"ACTIVE",
".",
"And",
"the",
"step",
"also",
"can",
"be",
"added",
"to",
"the",
"cluster",
"by",
... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bmr/model/CreateClusterRequest.java#L203-L209 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Filters.java | Filters.addField | public Filters addField(String field, String value) {
initialFields();
fields.add(new FieldFilter(field, value));
return this;
} | java | public Filters addField(String field, String value) {
initialFields();
fields.add(new FieldFilter(field, value));
return this;
} | [
"public",
"Filters",
"addField",
"(",
"String",
"field",
",",
"String",
"value",
")",
"{",
"initialFields",
"(",
")",
";",
"fields",
".",
"add",
"(",
"new",
"FieldFilter",
"(",
"field",
",",
"value",
")",
")",
";",
"return",
"this",
";",
"}"
] | Add field filter to fields which just append not replace.
@param field The field name for filter
@param value The value filter
@return Filters | [
"Add",
"field",
"filter",
"to",
"fields",
"which",
"just",
"append",
"not",
"replace",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Filters.java#L277-L281 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/Filters.java | Filters.addTag | public Filters addTag(String tagKey, List<String> tagValues) {
addTags(tagKey, tagValues);
return this;
} | java | public Filters addTag(String tagKey, List<String> tagValues) {
addTags(tagKey, tagValues);
return this;
} | [
"public",
"Filters",
"addTag",
"(",
"String",
"tagKey",
",",
"List",
"<",
"String",
">",
"tagValues",
")",
"{",
"addTags",
"(",
"tagKey",
",",
"tagValues",
")",
";",
"return",
"this",
";",
"}"
] | Add tag to tags which just append not replace.
@param tagKey
@param tagValues
@return Filters | [
"Add",
"tag",
"to",
"tags",
"which",
"just",
"append",
"not",
"replace",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/Filters.java#L290-L293 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilter | public static ValueFilter createValueFilter(String operation, String value) {
checkArgument(STRING_SUPPORTED_OPERATION.contains(operation), "String value only support operations in "
+ STRING_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, SINGLE_QUO... | java | public static ValueFilter createValueFilter(String operation, String value) {
checkArgument(STRING_SUPPORTED_OPERATION.contains(operation), "String value only support operations in "
+ STRING_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, SINGLE_QUO... | [
"public",
"static",
"ValueFilter",
"createValueFilter",
"(",
"String",
"operation",
",",
"String",
"value",
")",
"{",
"checkArgument",
"(",
"STRING_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"String value only support operations in \"",
"+",
"S... | Create value filter for String type.
@param operation Operation for comparing which only support =, !=, >, <, >= and <=.
@param value Value for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"String",
"type",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L79-L84 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilter | public static ValueFilter createValueFilter(String operation, Double value) {
checkArgument(LONG_DOUBLE_SUPPORTED_OPERATION.contains(operation), "Double value only support operations in "
+ LONG_DOUBLE_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, ... | java | public static ValueFilter createValueFilter(String operation, Double value) {
checkArgument(LONG_DOUBLE_SUPPORTED_OPERATION.contains(operation), "Double value only support operations in "
+ LONG_DOUBLE_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, ... | [
"public",
"static",
"ValueFilter",
"createValueFilter",
"(",
"String",
"operation",
",",
"Double",
"value",
")",
"{",
"checkArgument",
"(",
"LONG_DOUBLE_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"Double value only support operations in \"",
"+",... | Create value filter for Double type.
@param operation Operation for comparing which support =, !=, >, <, >= and <=.
@param value Value for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"Double",
"type",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L93-L98 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java | ValueFilter.createValueFilterOfTag | public static ValueFilter createValueFilterOfTag(String operation, String tagKey) {
checkArgument(TAG_SUPPORTED_OPERATION.contains(operation), "Value of tag key only support operations in "
+ TAG_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, tagKey... | java | public static ValueFilter createValueFilterOfTag(String operation, String tagKey) {
checkArgument(TAG_SUPPORTED_OPERATION.contains(operation), "Value of tag key only support operations in "
+ TAG_SUPPORTED_OPERATION.toString());
ValueFilter valueFilter = new ValueFilter(operation, tagKey... | [
"public",
"static",
"ValueFilter",
"createValueFilterOfTag",
"(",
"String",
"operation",
",",
"String",
"tagKey",
")",
"{",
"checkArgument",
"(",
"TAG_SUPPORTED_OPERATION",
".",
"contains",
"(",
"operation",
")",
",",
"\"Value of tag key only support operations in \"",
"+... | Create value filter for comparing with the value of tag key.
@param operation Operation for comparing which support =, !=, >, <, >= and <=.
@param tagKey Value of tag key for comparing with.
@return ValueFilter | [
"Create",
"value",
"filter",
"for",
"comparing",
"with",
"the",
"value",
"of",
"tag",
"key",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/tsdb/model/ValueFilter.java#L121-L126 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.listSubnets | public ListSubnetsResponse listSubnets(ListSubnetsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SUBNET_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter... | java | public ListSubnetsResponse listSubnets(ListSubnetsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, SUBNET_PREFIX);
if (request.getMarker() != null) {
internalRequest.addParameter... | [
"public",
"ListSubnetsResponse",
"listSubnets",
"(",
"ListSubnetsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
","... | Return a list of subnet owned by the authenticated user.
@param request The request containing all options for listing own's subnet.
@return The response containing a list of subnets owned by the authenticated user. | [
"Return",
"a",
"list",
"of",
"subnet",
"owned",
"by",
"the",
"authenticated",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L212-L222 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.getSubnet | public GetSubnetResponse getSubnet(GetSubnetRequest getSubnetRequest) {
checkNotNull(getSubnetRequest, "request should not be null.");
checkNotNull(getSubnetRequest.getSubnetId(), "request vpcId should not be null.");
InternalRequest internalRequest = this.createRequest(
getSubne... | java | public GetSubnetResponse getSubnet(GetSubnetRequest getSubnetRequest) {
checkNotNull(getSubnetRequest, "request should not be null.");
checkNotNull(getSubnetRequest.getSubnetId(), "request vpcId should not be null.");
InternalRequest internalRequest = this.createRequest(
getSubne... | [
"public",
"GetSubnetResponse",
"getSubnet",
"(",
"GetSubnetRequest",
"getSubnetRequest",
")",
"{",
"checkNotNull",
"(",
"getSubnetRequest",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"getSubnetRequest",
".",
"getSubnetId",
"(",
")",
",",
"\"r... | Get the detail information of specified subnet.
@param getSubnetRequest The request containing all options for getting the subnet info.
@return A subnet detail model for the subnetId. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"subnet",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L240-L246 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/subnet/SubnetClient.java | SubnetClient.modifySubnetAttributes | public void modifySubnetAttributes(String subnetId, String name) {
ModifySubnetAttributesRequest request = new ModifySubnetAttributesRequest();
modifySubnetAttributes(request.withName(name).withSubnetId(subnetId));
} | java | public void modifySubnetAttributes(String subnetId, String name) {
ModifySubnetAttributesRequest request = new ModifySubnetAttributesRequest();
modifySubnetAttributes(request.withName(name).withSubnetId(subnetId));
} | [
"public",
"void",
"modifySubnetAttributes",
"(",
"String",
"subnetId",
",",
"String",
"name",
")",
"{",
"ModifySubnetAttributesRequest",
"request",
"=",
"new",
"ModifySubnetAttributesRequest",
"(",
")",
";",
"modifySubnetAttributes",
"(",
"request",
".",
"withName",
"... | Modifying the special attribute to new value of the subnet owned by the user.
@param subnetId The id of the subnet
@param name The name of the subnet after modifying | [
"Modifying",
"the",
"special",
"attribute",
"to",
"new",
"value",
"of",
"the",
"subnet",
"owned",
"by",
"the",
"user",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/subnet/SubnetClient.java#L281-L284 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.verifyEmail | public void verifyEmail(VerifyEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRequest =
this.createRequest("veri... | java | public void verifyEmail(VerifyEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRequest =
this.createRequest("veri... | [
"public",
"void",
"verifyEmail",
"(",
"VerifyEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
")",
",",
"\"object email... | Verify email address
@param request The request object includes the URL address to verify, refer to
<code>com.baidubce.services.ses.model.VerifyEmailRequest</code>
@see com.baidubce.services.ses.model.VerifyEmailRequest | [
"Verify",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L107-L115 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listVerifiedEmail | public ListVerifiedEmailResponse listVerifiedEmail(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedEmail", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedEmailResponse.class);
} | java | public ListVerifiedEmailResponse listVerifiedEmail(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedEmail", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedEmailResponse.class);
} | [
"public",
"ListVerifiedEmailResponse",
"listVerifiedEmail",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"verifiedEmail\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"return"... | Get the list of verified email address
@param request The request object which it's <code>credentials</code> can be override
@return The response object includes the detail of verified email address, refer to
<code>com.baidubce.services.ses.model.ListVerifiedEmailResponse</code>
@see com.baidubce.services.ses.model.L... | [
"Get",
"the",
"list",
"of",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L135-L138 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getVerifiedEmail | public GetVerifiedEmailResponse getVerifiedEmail(GetVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
... | java | public GetVerifiedEmailResponse getVerifiedEmail(GetVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
... | [
"public",
"GetVerifiedEmailResponse",
"getVerifiedEmail",
"(",
"GetVerifiedEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
... | Get the detail of verified email address
@param request The request object includes email address to get
@return The response object includes the detail of verified email address, refer to
<code>com.baidubce.services.ses.model.GetVerifiedEmailResponse</code>
@see com.baidubce.services.ses.model.GetVerifiedEmailReques... | [
"Get",
"the",
"detail",
"of",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L159-L167 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.deleteVerifiedEmail | public void deleteVerifiedEmail(DeleteVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
InternalR... | java | public void deleteVerifiedEmail(DeleteVerifiedEmailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
checkIsEmail(request.getEmailAddress());
InternalR... | [
"public",
"void",
"deleteVerifiedEmail",
"(",
"DeleteVerifiedEmailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmailAddress",
"(",
")",
",",
... | Delete verified email address
@param request The request object includes the email address to delete, refer to
<code>com.baidubce.services.ses.model.DeleteVerifiedEmailRequest</code>
@see com.baidubce.services.ses.model.DeleteVerifiedEmailRequest | [
"Delete",
"verified",
"email",
"address"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L186-L194 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listVerifiedDomain | public ListVerifiedDomainResponse listVerifiedDomain(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedDomain", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedDomainResponse.class);
} | java | public ListVerifiedDomainResponse listVerifiedDomain(SesRequest request) {
InternalRequest internalRequest = this.createRequest("verifiedDomain", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListVerifiedDomainResponse.class);
} | [
"public",
"ListVerifiedDomainResponse",
"listVerifiedDomain",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"verifiedDomain\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"retu... | Get the list of verified domain
@param request The request object which it's <code>credentials</code> can be override
@return The response object which includes the detail of verified domain
@see com.baidubce.services.ses.model.ListVerifiedDomainResponse | [
"Get",
"the",
"list",
"of",
"verified",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L332-L335 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getVerifiedDomain | public GetVerifiedDomainResponse getVerifiedDomain(GetVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
... | java | public GetVerifiedDomainResponse getVerifiedDomain(GetVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
... | [
"public",
"GetVerifiedDomainResponse",
"getVerifiedDomain",
"(",
"GetVerifiedDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getDomainName",
"(",
... | Get the detail of specifical verified domain
@param request The request object which includes the domain to get
@return The response object which includes the detail of verified domain
@see com.baidubce.services.ses.model.GetVerifiedDomainResponse | [
"Get",
"the",
"detail",
"of",
"specifical",
"verified",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L354-L361 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.deleteVerifiedDomain | public void deleteVerifiedDomain(DeleteVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
this.creat... | java | public void deleteVerifiedDomain(DeleteVerifiedDomainRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getDomainName(), "object domainName should not be null or empty");
InternalRequest internalRequest =
this.creat... | [
"public",
"void",
"deleteVerifiedDomain",
"(",
"DeleteVerifiedDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getDomainName",
"(",
")",
",",
... | Delete the domain
@param request The request object which includes the domain to delete
@see com.baidubce.services.ses.model.DeleteVerifiedDomainRequest | [
"Delete",
"the",
"domain"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L379-L386 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.listRecipientBlacklist | public ListRecipientBlacklistResponse listRecipientBlacklist(SesRequest request) {
InternalRequest internalRequest = this.createRequest("recipientBlacklist", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListRecipientBlacklistResponse.class);
} | java | public ListRecipientBlacklistResponse listRecipientBlacklist(SesRequest request) {
InternalRequest internalRequest = this.createRequest("recipientBlacklist", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListRecipientBlacklistResponse.class);
} | [
"public",
"ListRecipientBlacklistResponse",
"listRecipientBlacklist",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"recipientBlacklist\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
... | Get the list of blacklist
@param request The request object which it's <code>credentials</code> can be override
@return The response which includes the detail of blacklist
@see com.baidubce.services.ses.model.ListRecipientBlacklistResponse | [
"Get",
"the",
"list",
"of",
"blacklist"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L662-L665 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.isInRecipientBlacklist | public IsInRecipientBlacklistResponse isInRecipientBlacklist(IsInRecipientBlacklistRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRe... | java | public IsInRecipientBlacklistResponse isInRecipientBlacklist(IsInRecipientBlacklistRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getEmailAddress(), "object emailAddress should not be null or empty");
InternalRequest internalRe... | [
"public",
"IsInRecipientBlacklistResponse",
"isInRecipientBlacklist",
"(",
"IsInRecipientBlacklistRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getEmail... | Query the special receiver is in blacklist or not
@param request The request object which includes the special receiver
@return The response result which includes the result of receiver in blacklist or not
@see com.baidubce.services.ses.model.IsInRecipientBlacklistResponse | [
"Query",
"the",
"special",
"receiver",
"is",
"in",
"blacklist",
"or",
"not"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L684-L691 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/ses/SesClient.java | SesClient.getFailedReason | public GetFailedReasonResponse getFailedReason(SesRequest request) {
InternalRequest internalRequest = this.createRequest("failedReason", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, GetFailedReasonResponse.class);
} | java | public GetFailedReasonResponse getFailedReason(SesRequest request) {
InternalRequest internalRequest = this.createRequest("failedReason", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, GetFailedReasonResponse.class);
} | [
"public",
"GetFailedReasonResponse",
"getFailedReason",
"(",
"SesRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"failedReason\"",
",",
"request",
",",
"HttpMethodName",
".",
"GET",
")",
";",
"return",
"... | Query the failed reason
@param request The request object which it's <code>credentials</code> can be override
@return The response which includes the detail of failed reason
@see com.baidubce.services.ses.model.GetFailedReasonResponse | [
"Query",
"the",
"failed",
"reason"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/ses/SesClient.java#L710-L713 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cert/CertClient.java | CertClient.attachRequestToBody | private void attachRequestToBody(AbstractBceRequest request, InternalRequest httpRequest) {
byte[] content;
try {
content = JsonUtils.toJsonString(request).getBytes("utf-8");
} catch (UnsupportedEncodingException e) {
throw new BceClientException("utf-8 encoding not suppo... | java | private void attachRequestToBody(AbstractBceRequest request, InternalRequest httpRequest) {
byte[] content;
try {
content = JsonUtils.toJsonString(request).getBytes("utf-8");
} catch (UnsupportedEncodingException e) {
throw new BceClientException("utf-8 encoding not suppo... | [
"private",
"void",
"attachRequestToBody",
"(",
"AbstractBceRequest",
"request",
",",
"InternalRequest",
"httpRequest",
")",
"{",
"byte",
"[",
"]",
"content",
";",
"try",
"{",
"content",
"=",
"JsonUtils",
".",
"toJsonString",
"(",
"request",
")",
".",
"getBytes",... | put json object into http content for put or post request.
@param request json object of rest request
@param httpRequest http request object | [
"put",
"json",
"object",
"into",
"http",
"content",
"for",
"put",
"or",
"post",
"request",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cert/CertClient.java#L124-L134 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/util/JsonUtils.java | JsonUtils.fromJsonString | public static <T> T fromJsonString(String json, Class<T> clazz) {
if (json == null) {
return null;
}
try {
return JsonUtils.objectMapper.readValue(json, clazz);
} catch (Exception e) {
throw new BceClientException("Unable to parse Json String.", e);
... | java | public static <T> T fromJsonString(String json, Class<T> clazz) {
if (json == null) {
return null;
}
try {
return JsonUtils.objectMapper.readValue(json, clazz);
} catch (Exception e) {
throw new BceClientException("Unable to parse Json String.", e);
... | [
"public",
"static",
"<",
"T",
">",
"T",
"fromJsonString",
"(",
"String",
"json",
",",
"Class",
"<",
"T",
">",
"clazz",
")",
"{",
"if",
"(",
"json",
"==",
"null",
")",
"{",
"return",
"null",
";",
"}",
"try",
"{",
"return",
"JsonUtils",
".",
"objectM... | Returns the deserialized object from the given json string and target class; or null if the given json string is
null. | [
"Returns",
"the",
"deserialized",
"object",
"from",
"the",
"given",
"json",
"string",
"and",
"target",
"class",
";",
"or",
"null",
"if",
"the",
"given",
"json",
"string",
"is",
"null",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/util/JsonUtils.java#L63-L72 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.queryMessageDetail | public QueryMessageDetailResponse queryMessageDetail(QueryMessageDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getMessageId(), "object messageId should not be null or empty.");
InternalRequest internalRequest =
... | java | public QueryMessageDetailResponse queryMessageDetail(QueryMessageDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getMessageId(), "object messageId should not be null or empty.");
InternalRequest internalRequest =
... | [
"public",
"QueryMessageDetailResponse",
"queryMessageDetail",
"(",
"QueryMessageDetailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getMessageId",
"("... | Query message detail
@param request The request object which includes the id of message to query
@return The response object which includes all the detail result, for example <code>id</code>,
<code>content</code>, <code>receiver</code>, <code>sendTime</code> etc
@see com.baidubce.services.sms.model.QueryMessageDetailR... | [
"Query",
"message",
"detail"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L127-L134 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.deleteTemplate | public void deleteTemplate(DeleteTemplateRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
this.createRequest("t... | java | public void deleteTemplate(DeleteTemplateRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
this.createRequest("t... | [
"public",
"void",
"deleteTemplate",
"(",
"DeleteTemplateRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getTemplateId",
"(",
")",
",",
"\"object t... | Delete message template
@param request The request object which includes the id of template which is ready to be deleted
@see com.baidubce.services.sms.model.DeleteTemplateRequest | [
"Delete",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L176-L183 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.getTemplateDetail | public GetTemplateDetailResponse getTemplateDetail(GetTemplateDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
... | java | public GetTemplateDetailResponse getTemplateDetail(GetTemplateDetailRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getTemplateId(), "object templateId should not be null or empty.");
InternalRequest internalRequest =
... | [
"public",
"GetTemplateDetailResponse",
"getTemplateDetail",
"(",
"GetTemplateDetailRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getTemplateId",
"(",
... | Get the detail of message template
@param request The request object which includes the id of template which is ready to be get
@return The response object which includes all of the detail of message template, refer to
<code>com.baidubce.services.sms.model.GetTemplateDetailResponse</code>
@see com.baidubce.services.sm... | [
"Get",
"the",
"detail",
"of",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L194-L201 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.listTemplate | public ListTemplateResponse listTemplate(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("template", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListTemplateResponse.class);
... | java | public ListTemplateResponse listTemplate(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("template", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, ListTemplateResponse.class);
... | [
"public",
"ListTemplateResponse",
"listTemplate",
"(",
"SmsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"template\"",... | Get the list of message template
@param request The request object which is empty
@return The response object which includes all of the detail of message template,refer to
<code>com.baidubce.services.sms.model.ListTemplateResponse</code>
@see com.baidubce.services.sms.model.ListTemplateResponse | [
"Get",
"the",
"list",
"of",
"message",
"template"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L211-L216 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.queryQuota | public QueryQuotaResponse queryQuota(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("quota", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, QueryQuotaResponse.class);
} | java | public QueryQuotaResponse queryQuota(SmsRequest request) {
checkNotNull(request, "object request should not be null.");
InternalRequest internalRequest = this.createRequest("quota", request, HttpMethodName.GET);
return this.invokeHttpClient(internalRequest, QueryQuotaResponse.class);
} | [
"public",
"QueryQuotaResponse",
"queryQuota",
"(",
"SmsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"\"quota\"",
",",... | Query the sending quota
@param request The request object which is empty
@return The response object which includes the detail of sending quota, refer to
<code>com.baidubce.services.sms.model.QueryQuotaResponse</code>
@see com.baidubce.services.sms.model.QueryQuotaResponse | [
"Query",
"the",
"sending",
"quota"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L226-L231 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/sms/SmsClient.java | SmsClient.statReceiver | public StatReceiverResponse statReceiver(StatReceiverRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getPhoneNumber(), "object phoneNumber should not be null or empty.");
InternalRequest internalRequest =
this.cr... | java | public StatReceiverResponse statReceiver(StatReceiverRequest request) {
checkNotNull(request, "object request should not be null.");
assertStringNotNullOrEmpty(request.getPhoneNumber(), "object phoneNumber should not be null or empty.");
InternalRequest internalRequest =
this.cr... | [
"public",
"StatReceiverResponse",
"statReceiver",
"(",
"StatReceiverRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"object request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getPhoneNumber",
"(",
")",
",",
... | Get the statistics about receiving message
@param request refer to <code>com.baidubce.services.sms.model.StatReceiverRequest</code>
@return refer to <code>com.baidubce.services.sms.model.StatReceiverResponse</code>
@see com.baidubce.services.sms.model.StatReceiverRequest
@see com.baidubce.services.sms.model.StatReceiv... | [
"Get",
"the",
"statistics",
"about",
"receiving",
"message"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/sms/SmsClient.java#L241-L248 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.createDomain | public CreateDomainResponse createDomain(CreateDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain());
this.attachRequestToBody(request, internalRequest... | java | public CreateDomainResponse createDomain(CreateDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain());
this.attachRequestToBody(request, internalRequest... | [
"public",
"CreateDomainResponse",
"createDomain",
"(",
"CreateDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
","... | Create a new domain acceleration.
@param request The request containing user-defined domain information.
@return Result of the createDomain operation returned by the service. | [
"Create",
"a",
"new",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L182-L187 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.enableDomain | public EnableDomainResponse enableDomain(EnableDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DOMAIN, request.getDomain());
internalRequest.addParameter("enable", "");
... | java | public EnableDomainResponse enableDomain(EnableDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DOMAIN, request.getDomain());
internalRequest.addParameter("enable", "");
... | [
"public",
"EnableDomainResponse",
"enableDomain",
"(",
"EnableDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
","... | Enable an existing domain acceleration.
@param request The request containing user-defined domain information.
@return Result of the enableDomain operation returned by the service. | [
"Enable",
"an",
"existing",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L204-L209 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.disableDomain | public DisableDomainResponse disableDomain(DisableDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DOMAIN, request.getDomain());
internalRequest.addParameter("disable", "");
... | java | public DisableDomainResponse disableDomain(DisableDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.POST, DOMAIN, request.getDomain());
internalRequest.addParameter("disable", "");
... | [
"public",
"DisableDomainResponse",
"disableDomain",
"(",
"DisableDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
... | Disable an existing domain acceleration.
@param request The request containing user-defined domain information.
@return Result of the disableDomain operation returned by the service. | [
"Disable",
"an",
"existing",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L226-L231 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.deleteDomain | public DeleteDomainResponse deleteDomain(DeleteDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.DELETE, DOMAIN, request.getDomain());
return invokeHttpClient(internalRequest, Delet... | java | public DeleteDomainResponse deleteDomain(DeleteDomainRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.DELETE, DOMAIN, request.getDomain());
return invokeHttpClient(internalRequest, Delet... | [
"public",
"DeleteDomainResponse",
"deleteDomain",
"(",
"DeleteDomainRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
","... | Delete an existing domain acceleration
@param request The request containing user-defined domain information.
@return Result of the deleteDomain operation returned by the service. | [
"Delete",
"an",
"existing",
"domain",
"acceleration"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L248-L252 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.listDomains | public ListDomainsResponse listDomains(ListDomainsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.GET, DOMAIN);
return invokeHttpClient(internalRequest, ListDomainsResponse.class);
... | java | public ListDomainsResponse listDomains(ListDomainsRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.GET, DOMAIN);
return invokeHttpClient(internalRequest, ListDomainsResponse.class);
... | [
"public",
"ListDomainsResponse",
"listDomains",
"(",
"ListDomainsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",
",",
... | Returns a list of all CDN domains that the authenticated sender of the request owns.
@param request The request containing all of the options related to the listing of domains.
@return All of the CDN domains owned by the authenticated sender of the request. | [
"Returns",
"a",
"list",
"of",
"all",
"CDN",
"domains",
"that",
"the",
"authenticated",
"sender",
"of",
"the",
"request",
"owns",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L269-L273 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getDomainConfig | public GetDomainConfigResponse getDomainConfig(GetDomainConfigRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.GET, DOMAIN, request.getDomain(), "config");
return invokeHttpClient(intern... | java | public GetDomainConfigResponse getDomainConfig(GetDomainConfigRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.GET, DOMAIN, request.getDomain(), "config");
return invokeHttpClient(intern... | [
"public",
"GetDomainConfigResponse",
"getDomainConfig",
"(",
"GetDomainConfigRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"reques... | Get detailed information of a domain.
@param request The request containing all of the options related to the domain.
@return getDomainConfig of the getDomainConfig operation returned by the service. | [
"Get",
"detailed",
"information",
"of",
"a",
"domain",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L291-L295 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.setDomainCacheTTL | public SetDomainCacheTTLResponse setDomainCacheTTL(SetDomainCacheTTLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.addParam... | java | public SetDomainCacheTTLResponse setDomainCacheTTL(SetDomainCacheTTLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.addParam... | [
"public",
"SetDomainCacheTTLResponse",
"setDomainCacheTTL",
"(",
"SetDomainCacheTTLRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"... | Update cache policies of specified domain acceleration.
@param request The request containing all of the options related to the update request.
@return Result of the setDomainCacheTTL operation returned by the service. | [
"Update",
"cache",
"policies",
"of",
"specified",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L356-L362 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.setDomainRefererACL | public SetDomainRefererACLResponse setDomainRefererACL(SetDomainRefererACLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.ad... | java | public SetDomainRefererACLResponse setDomainRefererACL(SetDomainRefererACLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.ad... | [
"public",
"SetDomainRefererACLResponse",
"setDomainRefererACL",
"(",
"SetDomainRefererACLRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(... | Update RefererACL rules of specified domain acceleration.
@param request The request containing all of the options related to the update request.
@return Result of the setDomainRefererACL operation returned by the service. | [
"Update",
"RefererACL",
"rules",
"of",
"specified",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L398-L404 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.setDomainIpACL | public SetDomainIpACLResponse setDomainIpACL(SetDomainIpACLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.addParameter("ipA... | java | public SetDomainIpACLResponse setDomainIpACL(SetDomainIpACLRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
InternalRequest internalRequest = createRequest(request, HttpMethodName.PUT, DOMAIN, request.getDomain(), "config");
internalRequest.addParameter("ipA... | [
"public",
"SetDomainIpACLResponse",
"setDomainIpACL",
"(",
"SetDomainIpACLRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"request",... | Update IpACL rules of specified domain acceleration.
@param request The request containing all of the options related to the update request.
@return Result of the setDomainIpACL operation returned by the service. | [
"Update",
"IpACL",
"rules",
"of",
"specified",
"domain",
"acceleration",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L412-L418 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getPurgeStatus | public GetPurgeStatusResponse getPurgeStatus(GetPurgeStatusRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "purge");
if (request.getId() != null) {
internalRequest.addParameter("id", request.getId());
}
if (request.... | java | public GetPurgeStatusResponse getPurgeStatus(GetPurgeStatusRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "purge");
if (request.getId() != null) {
internalRequest.addParameter("id", request.getId());
}
if (request.... | [
"public",
"GetPurgeStatusResponse",
"getPurgeStatus",
"(",
"GetPurgeStatusRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"CACHE",
",",
"\"purge\"",
")",
... | Get purge status with specified attributes.
@param request The request containing the task id returned by purge operation.
@return Details of tasks | [
"Get",
"purge",
"status",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L562-L585 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getPrefetchStatus | public GetPrefetchStatusResponse getPrefetchStatus(GetPrefetchStatusRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "prefetch");
if (request.getId() != null) {
internalRequest.addParameter("id", request.getId());
}
... | java | public GetPrefetchStatusResponse getPrefetchStatus(GetPrefetchStatusRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "prefetch");
if (request.getId() != null) {
internalRequest.addParameter("id", request.getId());
}
... | [
"public",
"GetPrefetchStatusResponse",
"getPrefetchStatus",
"(",
"GetPrefetchStatusRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"CACHE",
",",
"\"prefetch\"... | Get prefetch status with specified attributes.
@param request The request containing the task id returned by prefetch operation.
@return Details of tasks | [
"Get",
"prefetch",
"status",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L593-L616 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatPv | public GetStatPvResponse getStatPv(GetStatPvRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "pv");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(request.... | java | public GetStatPvResponse getStatPv(GetStatPvRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "pv");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(request.... | [
"public",
"GetStatPvResponse",
"getStatPv",
"(",
"GetStatPvRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"pv\"",
")",
";",
"if",
"(",... | Get pv statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"pv",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L624-L647 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatFlow | public GetStatFlowResponse getStatFlow(GetStatFlowRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "flow");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(... | java | public GetStatFlowResponse getStatFlow(GetStatFlowRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "flow");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(... | [
"public",
"GetStatFlowResponse",
"getStatFlow",
"(",
"GetStatFlowRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"flow\"",
")",
";",
"if"... | Get flow statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"flow",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L655-L678 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatSrcFlow | public GetStatSrcFlowResponse getStatSrcFlow(GetStatSrcFlowRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "srcflow");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternate... | java | public GetStatSrcFlowResponse getStatSrcFlow(GetStatSrcFlowRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "srcflow");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternate... | [
"public",
"GetStatSrcFlowResponse",
"getStatSrcFlow",
"(",
"GetStatSrcFlowRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"srcflow\"",
")",
... | Get origin flow statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"origin",
"flow",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L686-L706 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatHitRate | public GetStatHitRateResponse getStatHitRate(GetStatHitRateRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "hitrate");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternate... | java | public GetStatHitRateResponse getStatHitRate(GetStatHitRateRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "hitrate");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternate... | [
"public",
"GetStatHitRateResponse",
"getStatHitRate",
"(",
"GetStatHitRateRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"hitrate\"",
")",
... | Get hit rate statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"hit",
"rate",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L713-L733 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatHttpCode | public GetStatHttpCodeResponse getStatHttpCode(GetStatHttpCodeRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "httpcode");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlter... | java | public GetStatHttpCodeResponse getStatHttpCode(GetStatHttpCodeRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "httpcode");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlter... | [
"public",
"GetStatHttpCodeResponse",
"getStatHttpCode",
"(",
"GetStatHttpCodeRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"httpcode\"",
")... | Get http code statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"http",
"code",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L741-L765 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatTopUrl | public GetStatTopUrlResponse getStatTopUrl(GetStatTopUrlRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "topn", "url");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternat... | java | public GetStatTopUrlResponse getStatTopUrl(GetStatTopUrlRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "topn", "url");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternat... | [
"public",
"GetStatTopUrlResponse",
"getStatTopUrl",
"(",
"GetStatTopUrlRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"topn\"",
",",
"\"ur... | Get top url statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"top",
"url",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L773-L793 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatTopReferer | public GetStatTopRefererResponse getStatTopReferer(GetStatTopRefererRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "topn", "referer");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtil... | java | public GetStatTopRefererResponse getStatTopReferer(GetStatTopRefererRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "topn", "referer");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtil... | [
"public",
"GetStatTopRefererResponse",
"getStatTopReferer",
"(",
"GetStatTopRefererRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"topn\"",
... | Get top http referer statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"top",
"http",
"referer",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L801-L821 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatUv | public GetStatUvResponse getStatUv(GetStatUvRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "uv");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(request.... | java | public GetStatUvResponse getStatUv(GetStatUvRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "uv");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternateIso8601Date(request.... | [
"public",
"GetStatUvResponse",
"getStatUv",
"(",
"GetStatUvRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"uv\"",
")",
";",
"if",
"(",... | Get uv statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"uv",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L829-L849 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getStatAvgSpeed | public GetStatAvgSpeedResponse getStatAvgSpeed(GetStatAvgSpeedRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "avgspeed");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlter... | java | public GetStatAvgSpeedResponse getStatAvgSpeed(GetStatAvgSpeedRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, STAT, "avgspeed");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlter... | [
"public",
"GetStatAvgSpeedResponse",
"getStatAvgSpeed",
"(",
"GetStatAvgSpeedRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"STAT",
",",
"\"avgspeed\"",
")... | Get average speed statistics with specified attributes.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"average",
"speed",
"statistics",
"with",
"specified",
"attributes",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L857-L877 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getCacheQuota | public GetCacheQuotaResponse getCacheQuota(GetCacheQuotaRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "quota");
return this.invokeHttpClient(internalRequest, GetCacheQuotaResponse.class);
} | java | public GetCacheQuotaResponse getCacheQuota(GetCacheQuotaRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, CACHE, "quota");
return this.invokeHttpClient(internalRequest, GetCacheQuotaResponse.class);
} | [
"public",
"GetCacheQuotaResponse",
"getCacheQuota",
"(",
"GetCacheQuotaRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"CACHE",
",",
"\"quota\"",
")",
";"... | Get cache operation quota.
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"cache",
"operation",
"quota",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L897-L900 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/cdn/CdnClient.java | CdnClient.getDomainLog | public GetDomainLogResponse getDomainLog(GetDomainLogRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, LOG, request.getDomain(), "log");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternat... | java | public GetDomainLogResponse getDomainLog(GetDomainLogRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, LOG, request.getDomain(), "log");
if (request.getStartTime() != null) {
internalRequest.addParameter("startTime", DateUtils.formatAlternat... | [
"public",
"GetDomainLogResponse",
"getDomainLog",
"(",
"GetDomainLogRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"LOG",
",",
"request",
".",
"getDomain... | Get URLs of log files
@param request The request containing all the options related to the statistics.
@return Details of statistics | [
"Get",
"URLs",
"of",
"log",
"files"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/cdn/CdnClient.java#L908-L917 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.createEip | public CreateEipResponse createEip(CreateEipRequest request) {
checkNotNull(request.getBandwidthInMbps(), "bandwidthInMbps should not be null");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
if (null == request.... | java | public CreateEipResponse createEip(CreateEipRequest request) {
checkNotNull(request.getBandwidthInMbps(), "bandwidthInMbps should not be null");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
if (null == request.... | [
"public",
"CreateEipResponse",
"createEip",
"(",
"CreateEipRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
".",
"getBandwidthInMbps",
"(",
")",
",",
"\"bandwidthInMbps should not be null\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"... | Create an eip with the specified options.
This is an asynchronous interface
@param request The request containing all options for creating an eip.
@return created eip address | [
"Create",
"an",
"eip",
"with",
"the",
"specified",
"options",
".",
"This",
"is",
"an",
"asynchronous",
"interface"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L102-L116 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.resizeEip | public void resizeEip(ResizeEipRequest request) {
checkNotNull(request.getNewBandwidthInMbps(), "newBandwidthInMbps should not be null");
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(ge... | java | public void resizeEip(ResizeEipRequest request) {
checkNotNull(request.getNewBandwidthInMbps(), "newBandwidthInMbps should not be null");
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(ge... | [
"public",
"void",
"resizeEip",
"(",
"ResizeEipRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
".",
"getNewBandwidthInMbps",
"(",
")",
",",
"\"newBandwidthInMbps should not be null\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getEip",
"(",
... | Resizing eip
The Prepaid eip can not be downgrade.
This is an asynchronous interface.
@param request eip & newBandwidthInMbps must be provided | [
"Resizing",
"eip",
"The",
"Prepaid",
"eip",
"can",
"not",
"be",
"downgrade",
".",
"This",
"is",
"an",
"asynchronous",
"interface",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L135-L146 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.purchaseReservedEipInMonth | public void purchaseReservedEipInMonth(String eip, int reservationLength) {
Billing billing = new Billing();
billing.setReservation(new Billing.Reservation().withReservationLength(reservationLength));
this.purchaseReservedEip(new PurchaseReservedEipRequest().withEip(eip).withBilling(billing));
... | java | public void purchaseReservedEipInMonth(String eip, int reservationLength) {
Billing billing = new Billing();
billing.setReservation(new Billing.Reservation().withReservationLength(reservationLength));
this.purchaseReservedEip(new PurchaseReservedEipRequest().withEip(eip).withBilling(billing));
... | [
"public",
"void",
"purchaseReservedEipInMonth",
"(",
"String",
"eip",
",",
"int",
"reservationLength",
")",
"{",
"Billing",
"billing",
"=",
"new",
"Billing",
"(",
")",
";",
"billing",
".",
"setReservation",
"(",
"new",
"Billing",
".",
"Reservation",
"(",
")",
... | PurchaseReserved eip with specified duration in month
@param eip
@param reservationLength | [
"PurchaseReserved",
"eip",
"with",
"specified",
"duration",
"in",
"month"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L153-L157 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.purchaseReservedEip | public void purchaseReservedEip(PurchaseReservedEipRequest request) {
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
if (null == request.getBillin... | java | public void purchaseReservedEip(PurchaseReservedEipRequest request) {
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
if (null == request.getBillin... | [
"public",
"void",
"purchaseReservedEip",
"(",
"PurchaseReservedEipRequest",
"request",
")",
"{",
"checkStringNotEmpty",
"(",
"request",
".",
"getEip",
"(",
")",
",",
"\"eip should not be empty\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",... | PurchaseReserved eip with fixed duration
only Prepaid eip can do this
This is an asynchronous interface
@param request The request containing all options for renewing eip with fixed duration. | [
"PurchaseReserved",
"eip",
"with",
"fixed",
"duration",
"only",
"Prepaid",
"eip",
"can",
"do",
"this"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L181-L194 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.unbindEip | public void unbindEip(UnbindEipRequest request) {
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
InternalRequest internalRequest = this.createRequ... | java | public void unbindEip(UnbindEipRequest request) {
checkStringNotEmpty(request.getEip(), "eip should not be empty");
if (Strings.isNullOrEmpty(request.getClientToken())) {
request.setClientToken(generateDefaultClientToken());
}
InternalRequest internalRequest = this.createRequ... | [
"public",
"void",
"unbindEip",
"(",
"UnbindEipRequest",
"request",
")",
"{",
"checkStringNotEmpty",
"(",
"request",
".",
"getEip",
"(",
")",
",",
"\"eip should not be empty\"",
")",
";",
"if",
"(",
"Strings",
".",
"isNullOrEmpty",
"(",
"request",
".",
"getClient... | unbind the eip from a specified instance
@param request The request containing all options for unbinding eip | [
"unbind",
"the",
"eip",
"from",
"a",
"specified",
"instance"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L235-L246 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.listEips | public ListEipsResponse listEips(ListEipsRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.addParameter("marker", request.getMarker());
}
if (request.g... | java | public ListEipsResponse listEips(ListEipsRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.addParameter("marker", request.getMarker());
}
if (request.g... | [
"public",
"ListEipsResponse",
"listEips",
"(",
"ListEipsRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"null",
")",
";",
"if",
"(",
"!",
"Strings",
... | get a list of eips owned by the authenticated user and specified conditions
we can Also get a single eip function through this interface by eip condition
if query by the instanceId or instanceType condition, must provides both of them at the same time
@param request The request containing all options for query
@retu... | [
"get",
"a",
"list",
"of",
"eips",
"owned",
"by",
"the",
"authenticated",
"user",
"and",
"specified",
"conditions"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L290-L311 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/eip/EipClient.java | EipClient.generateDefaultBilling | private Billing generateDefaultBilling() {
Billing billing = new Billing();
billing.setPaymentTiming("Postpaid");
billing.setBillingMethod("ByBandwidth");
return billing;
} | java | private Billing generateDefaultBilling() {
Billing billing = new Billing();
billing.setPaymentTiming("Postpaid");
billing.setBillingMethod("ByBandwidth");
return billing;
} | [
"private",
"Billing",
"generateDefaultBilling",
"(",
")",
"{",
"Billing",
"billing",
"=",
"new",
"Billing",
"(",
")",
";",
"billing",
".",
"setPaymentTiming",
"(",
"\"Postpaid\"",
")",
";",
"billing",
".",
"setBillingMethod",
"(",
"\"ByBandwidth\"",
")",
";",
... | The method to generate a default Billing which is Postpaid.
@return The Billing object with Postpaid PaymentTiming. | [
"The",
"method",
"to",
"generate",
"a",
"default",
"Billing",
"which",
"is",
"Postpaid",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/eip/EipClient.java#L381-L386 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.getDelayBeforeNextRetryInMillis | protected long getDelayBeforeNextRetryInMillis(HttpRequestBase method, BceClientException exception, int attempt,
RetryPolicy retryPolicy) {
int retries = attempt - 1;
int maxErrorRetry = retryPolicy.getMaxErrorRetry();
// Immediately fails when it has exceeds the max retry count.
... | java | protected long getDelayBeforeNextRetryInMillis(HttpRequestBase method, BceClientException exception, int attempt,
RetryPolicy retryPolicy) {
int retries = attempt - 1;
int maxErrorRetry = retryPolicy.getMaxErrorRetry();
// Immediately fails when it has exceeds the max retry count.
... | [
"protected",
"long",
"getDelayBeforeNextRetryInMillis",
"(",
"HttpRequestBase",
"method",
",",
"BceClientException",
"exception",
",",
"int",
"attempt",
",",
"RetryPolicy",
"retryPolicy",
")",
"{",
"int",
"retries",
"=",
"attempt",
"-",
"1",
";",
"int",
"maxErrorRet... | Get delay time before next retry.
@param method The current HTTP method being executed.
@param exception The client/service exception from the failed request.
@param attempt The number of times the current request has been attempted.
@param retryPolicy The retryPolicy being used.
@return The deley time before next ret... | [
"Get",
"delay",
"time",
"before",
"next",
"retry",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L313-L335 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createHttpClientConnectionManager | private HttpClientConnectionManager createHttpClientConnectionManager() {
ConnectionSocketFactory socketFactory = PlainConnectionSocketFactory.getSocketFactory();
LayeredConnectionSocketFactory sslSocketFactory;
try {
sslSocketFactory = new SSLConnectionSocketFactory(SSLContext.getDe... | java | private HttpClientConnectionManager createHttpClientConnectionManager() {
ConnectionSocketFactory socketFactory = PlainConnectionSocketFactory.getSocketFactory();
LayeredConnectionSocketFactory sslSocketFactory;
try {
sslSocketFactory = new SSLConnectionSocketFactory(SSLContext.getDe... | [
"private",
"HttpClientConnectionManager",
"createHttpClientConnectionManager",
"(",
")",
"{",
"ConnectionSocketFactory",
"socketFactory",
"=",
"PlainConnectionSocketFactory",
".",
"getSocketFactory",
"(",
")",
";",
"LayeredConnectionSocketFactory",
"sslSocketFactory",
";",
"try",... | Create connection manager for http client.
@return The connection manager for http client. | [
"Create",
"connection",
"manager",
"for",
"http",
"client",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L342-L361 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createNHttpClientConnectionManager | protected NHttpClientConnectionManager createNHttpClientConnectionManager() throws IOReactorException {
ConnectingIOReactor ioReactor =
new DefaultConnectingIOReactor(IOReactorConfig.custom()
.setSoTimeout(this.config.getSocketTimeoutInMillis()).setTcpNoDelay(true).build(... | java | protected NHttpClientConnectionManager createNHttpClientConnectionManager() throws IOReactorException {
ConnectingIOReactor ioReactor =
new DefaultConnectingIOReactor(IOReactorConfig.custom()
.setSoTimeout(this.config.getSocketTimeoutInMillis()).setTcpNoDelay(true).build(... | [
"protected",
"NHttpClientConnectionManager",
"createNHttpClientConnectionManager",
"(",
")",
"throws",
"IOReactorException",
"{",
"ConnectingIOReactor",
"ioReactor",
"=",
"new",
"DefaultConnectingIOReactor",
"(",
"IOReactorConfig",
".",
"custom",
"(",
")",
".",
"setSoTimeout"... | Create connection manager for asynchronous http client.
@return Connection manager for asynchronous http client.
@throws IOReactorException in case if a non-recoverable I/O error. | [
"Create",
"connection",
"manager",
"for",
"asynchronous",
"http",
"client",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L369-L377 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createHttpClient | private CloseableHttpClient createHttpClient(HttpClientConnectionManager connectionManager) {
HttpClientBuilder builder =
HttpClients.custom().setConnectionManager(connectionManager).disableAutomaticRetries();
int socketBufferSizeInBytes = this.config.getSocketBufferSizeInBytes();
... | java | private CloseableHttpClient createHttpClient(HttpClientConnectionManager connectionManager) {
HttpClientBuilder builder =
HttpClients.custom().setConnectionManager(connectionManager).disableAutomaticRetries();
int socketBufferSizeInBytes = this.config.getSocketBufferSizeInBytes();
... | [
"private",
"CloseableHttpClient",
"createHttpClient",
"(",
"HttpClientConnectionManager",
"connectionManager",
")",
"{",
"HttpClientBuilder",
"builder",
"=",
"HttpClients",
".",
"custom",
"(",
")",
".",
"setConnectionManager",
"(",
"connectionManager",
")",
".",
"disableA... | Create http client based on connection manager.
@param connectionManager The connection manager setting http client.
@return Http client based on connection manager. | [
"Create",
"http",
"client",
"based",
"on",
"connection",
"manager",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L385-L396 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createHttpAsyncClient | protected CloseableHttpAsyncClient createHttpAsyncClient(NHttpClientConnectionManager connectionManager) {
HttpAsyncClientBuilder builder = HttpAsyncClients.custom().setConnectionManager(connectionManager);
int socketBufferSizeInBytes = this.config.getSocketBufferSizeInBytes();
if (socketBuffer... | java | protected CloseableHttpAsyncClient createHttpAsyncClient(NHttpClientConnectionManager connectionManager) {
HttpAsyncClientBuilder builder = HttpAsyncClients.custom().setConnectionManager(connectionManager);
int socketBufferSizeInBytes = this.config.getSocketBufferSizeInBytes();
if (socketBuffer... | [
"protected",
"CloseableHttpAsyncClient",
"createHttpAsyncClient",
"(",
"NHttpClientConnectionManager",
"connectionManager",
")",
"{",
"HttpAsyncClientBuilder",
"builder",
"=",
"HttpAsyncClients",
".",
"custom",
"(",
")",
".",
"setConnectionManager",
"(",
"connectionManager",
... | Create asynchronous http client based on connection manager.
@param connectionManager Asynchronous http client connection manager.
@return Asynchronous http client based on connection manager. | [
"Create",
"asynchronous",
"http",
"client",
"based",
"on",
"connection",
"manager",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L404-L413 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createHttpRequest | protected HttpRequestBase createHttpRequest(InternalRequest request) {
String uri = request.getUri().toASCIIString();
String encodedParams = HttpUtils.getCanonicalQueryString(request.getParameters(), false);
if (encodedParams.length() > 0) {
uri += "?" + encodedParams;
}
... | java | protected HttpRequestBase createHttpRequest(InternalRequest request) {
String uri = request.getUri().toASCIIString();
String encodedParams = HttpUtils.getCanonicalQueryString(request.getParameters(), false);
if (encodedParams.length() > 0) {
uri += "?" + encodedParams;
}
... | [
"protected",
"HttpRequestBase",
"createHttpRequest",
"(",
"InternalRequest",
"request",
")",
"{",
"String",
"uri",
"=",
"request",
".",
"getUri",
"(",
")",
".",
"toASCIIString",
"(",
")",
";",
"String",
"encodedParams",
"=",
"HttpUtils",
".",
"getCanonicalQueryStr... | Creates HttpClient method object based on the specified request and
populates any parameters, headers, etc. from the internal request.
@param request The request to convert to an HttpClient method object.
@return The converted HttpClient method object with any parameters, headers, etc. from the original request set. | [
"Creates",
"HttpClient",
"method",
"object",
"based",
"on",
"the",
"specified",
"request",
"and",
"populates",
"any",
"parameters",
"headers",
"etc",
".",
"from",
"the",
"internal",
"request",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L422-L476 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/http/BceHttpClient.java | BceHttpClient.createHttpContext | protected HttpClientContext createHttpContext(InternalRequest request) {
HttpClientContext context = HttpClientContext.create();
context.setRequestConfig(this.requestConfigBuilder.setExpectContinueEnabled(request.isExpectContinueEnabled())
.build());
if (this.credentialsProvider ... | java | protected HttpClientContext createHttpContext(InternalRequest request) {
HttpClientContext context = HttpClientContext.create();
context.setRequestConfig(this.requestConfigBuilder.setExpectContinueEnabled(request.isExpectContinueEnabled())
.build());
if (this.credentialsProvider ... | [
"protected",
"HttpClientContext",
"createHttpContext",
"(",
"InternalRequest",
"request",
")",
"{",
"HttpClientContext",
"context",
"=",
"HttpClientContext",
".",
"create",
"(",
")",
";",
"context",
".",
"setRequestConfig",
"(",
"this",
".",
"requestConfigBuilder",
".... | Creates HttpClient Context object based on the internal request.
@param request The internal request.
@return HttpClient Context object. | [
"Creates",
"HttpClient",
"Context",
"object",
"based",
"on",
"the",
"internal",
"request",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/http/BceHttpClient.java#L484-L497 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.getBosAccountOwner | public User getBosAccountOwner(GetBosAccountOwnerRequest request) {
checkNotNull(request, "request should not be null.");
return this.invokeHttpClient(this.createRequest(request, HttpMethodName.GET), ListBucketsResponse.class)
.getOwner();
} | java | public User getBosAccountOwner(GetBosAccountOwnerRequest request) {
checkNotNull(request, "request should not be null.");
return this.invokeHttpClient(this.createRequest(request, HttpMethodName.GET), ListBucketsResponse.class)
.getOwner();
} | [
"public",
"User",
"getBosAccountOwner",
"(",
"GetBosAccountOwnerRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"return",
"this",
".",
"invokeHttpClient",
"(",
"this",
".",
"createRequest",
"(",
"request... | Gets the current owner of the Bos account that the authenticated sender of the request is using.
<p>
The caller <i>must</i> authenticate with a valid BCE Access Key ID that is registered with Bos.
@param request This request containing the credentials for getting the account of the authenticated sender.
@return The a... | [
"Gets",
"the",
"current",
"owner",
"of",
"the",
"Bos",
"account",
"that",
"the",
"authenticated",
"sender",
"of",
"the",
"request",
"is",
"using",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L122-L127 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.listBuckets | public ListBucketsResponse listBuckets(ListBucketsRequest request) {
checkNotNull(request, "request should not be null.");
return this.invokeHttpClient(this.createRequest(request, HttpMethodName.GET), ListBucketsResponse.class);
} | java | public ListBucketsResponse listBuckets(ListBucketsRequest request) {
checkNotNull(request, "request should not be null.");
return this.invokeHttpClient(this.createRequest(request, HttpMethodName.GET), ListBucketsResponse.class);
} | [
"public",
"ListBucketsResponse",
"listBuckets",
"(",
"ListBucketsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"return",
"this",
".",
"invokeHttpClient",
"(",
"this",
".",
"createRequest",
"(",
"reques... | Returns a list of all Bos buckets that the authenticated sender of the request owns.
<p>
Users must authenticate with a valid BCE Access Key ID that is registered
with Bos. Anonymous requests cannot list buckets, and users cannot
list buckets that they did not create.
@param request The request containing all of the ... | [
"Returns",
"a",
"list",
"of",
"all",
"Bos",
"buckets",
"that",
"the",
"authenticated",
"sender",
"of",
"the",
"request",
"owns",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L154-L158 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.createBucket | public CreateBucketResponse createBucket(CreateBucketRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.PUT);
this.setZeroContentLength(internalRequest);
BosResponse response = this.invoke... | java | public CreateBucketResponse createBucket(CreateBucketRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.PUT);
this.setZeroContentLength(internalRequest);
BosResponse response = this.invoke... | [
"public",
"CreateBucketResponse",
"createBucket",
"(",
"CreateBucketRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
... | Creates a new Bos bucket with the specified name.
@param request The request object containing all options for creating a Bos bucket.
@return The newly created bucket. | [
"Creates",
"a",
"new",
"Bos",
"bucket",
"with",
"the",
"specified",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L177-L187 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.doesBucketExist | public boolean doesBucketExist(DoesBucketExistRequest request) {
checkNotNull(request, "request should not be null.");
try {
this.invokeHttpClient(this.createRequest(request, HttpMethodName.HEAD), BosResponse.class);
return true;
} catch (BceServiceException e) {
... | java | public boolean doesBucketExist(DoesBucketExistRequest request) {
checkNotNull(request, "request should not be null.");
try {
this.invokeHttpClient(this.createRequest(request, HttpMethodName.HEAD), BosResponse.class);
return true;
} catch (BceServiceException e) {
... | [
"public",
"boolean",
"doesBucketExist",
"(",
"DoesBucketExistRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"try",
"{",
"this",
".",
"invokeHttpClient",
"(",
"this",
".",
"createRequest",
"(",
"reques... | Checks if the specified bucket exists. Bos buckets are named in a
global namespace; use this method to determine if a specified bucket name
already exists, and therefore can't be used to create a new bucket.
<p>
If invalid security credentials are used to execute this method, the
client is not able to distinguish betw... | [
"Checks",
"if",
"the",
"specified",
"bucket",
"exists",
".",
"Bos",
"buckets",
"are",
"named",
"in",
"a",
"global",
"namespace",
";",
"use",
"this",
"method",
"to",
"determine",
"if",
"a",
"specified",
"bucket",
"name",
"already",
"exists",
"and",
"therefore... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L223-L238 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.getBucketAcl | public GetBucketAclResponse getBucketAcl(GetBucketAclRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("acl", null);
GetBucketAclResponse response = th... | java | public GetBucketAclResponse getBucketAcl(GetBucketAclRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("acl", null);
GetBucketAclResponse response = th... | [
"public",
"GetBucketAclResponse",
"getBucketAcl",
"(",
"GetBucketAclRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
... | Gets the ACL for the specified Bos bucket.
<p>
Each bucket and object in Bos has an ACL that defines its access
control policy. When a request is made, Bos authenticates the
request using its standard authentication procedure and then checks the
ACL to verify the sender was granted access to the bucket or object. If
t... | [
"Gets",
"the",
"ACL",
"for",
"the",
"specified",
"Bos",
"bucket",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L272-L283 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.getBucketLocation | public GetBucketLocationResponse getBucketLocation(GetBucketLocationRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("location", null);
GetBucketLocat... | java | public GetBucketLocationResponse getBucketLocation(GetBucketLocationRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("location", null);
GetBucketLocat... | [
"public",
"GetBucketLocationResponse",
"getBucketLocation",
"(",
"GetBucketLocationRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
... | Gets the Location for the specified Bos bucket.
<p>
Each bucket and object in Bos has an Location that defines its location
@param request The request containing the name of the bucket whose Location is being retrieved.
@return The <code>GetBuckeetLocationResponse</code> for the specified Bos bucket. | [
"Gets",
"the",
"Location",
"for",
"the",
"specified",
"Bos",
"bucket",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L307-L316 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.setBucketAcl | public void setBucketAcl(SetBucketAclRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.PUT);
internalRequest.addParameter("acl", null);
if (request.getCannedAcl() != null) {
... | java | public void setBucketAcl(SetBucketAclRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.PUT);
internalRequest.addParameter("acl", null);
if (request.getCannedAcl() != null) {
... | [
"public",
"void",
"setBucketAcl",
"(",
"SetBucketAclRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMeth... | Sets the Acl for the specified Bos bucket.
@param request The request object containing the bucket to modify and the ACL to set. | [
"Sets",
"the",
"Acl",
"for",
"the",
"specified",
"Bos",
"bucket",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L356-L419 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.deleteBucket | public void deleteBucket(DeleteBucketRequest request) {
checkNotNull(request, "request should not be null.");
this.invokeHttpClient(this.createRequest(request, HttpMethodName.DELETE), BosResponse.class);
} | java | public void deleteBucket(DeleteBucketRequest request) {
checkNotNull(request, "request should not be null.");
this.invokeHttpClient(this.createRequest(request, HttpMethodName.DELETE), BosResponse.class);
} | [
"public",
"void",
"deleteBucket",
"(",
"DeleteBucketRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"this",
".",
"invokeHttpClient",
"(",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodN... | Deletes the specified bucket. All objects in the bucket must be deleted before the bucket itself
can be deleted.
<p>
Only the owner of a bucket can delete it, regardless of the bucket's access control policy.
@param request The request object containing all options for deleting a Bos bucket. | [
"Deletes",
"the",
"specified",
"bucket",
".",
"All",
"objects",
"in",
"the",
"bucket",
"must",
"be",
"deleted",
"before",
"the",
"bucket",
"itself",
"can",
"be",
"deleted",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L443-L447 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.listNextBatchOfObjects | public ListObjectsResponse listNextBatchOfObjects(ListObjectsResponse previousResponse) {
checkNotNull(previousResponse, "previousResponse should not be null.");
if (!previousResponse.isTruncated()) {
ListObjectsResponse emptyResponse = new ListObjectsResponse();
emptyResponse.s... | java | public ListObjectsResponse listNextBatchOfObjects(ListObjectsResponse previousResponse) {
checkNotNull(previousResponse, "previousResponse should not be null.");
if (!previousResponse.isTruncated()) {
ListObjectsResponse emptyResponse = new ListObjectsResponse();
emptyResponse.s... | [
"public",
"ListObjectsResponse",
"listNextBatchOfObjects",
"(",
"ListObjectsResponse",
"previousResponse",
")",
"{",
"checkNotNull",
"(",
"previousResponse",
",",
"\"previousResponse should not be null.\"",
")",
";",
"if",
"(",
"!",
"previousResponse",
".",
"isTruncated",
"... | Provides an easy way to continue a truncated object listing and retrieve the next page of results.
@param previousResponse The previous truncated <code>ListObjectsResponse</code>. If a non-truncated
<code>ListObjectsResponse</code> is passed in, an empty <code>ListObjectsResponse</code>
is returned without ever contac... | [
"Provides",
"an",
"easy",
"way",
"to",
"continue",
"a",
"truncated",
"object",
"listing",
"and",
"retrieve",
"the",
"next",
"page",
"of",
"results",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L615-L634 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.getObjectContent | public byte[] getObjectContent(GetObjectRequest request) {
BosObjectInputStream content = this.getObject(request).getObjectContent();
try {
return IOUtils.toByteArray(content);
} catch (IOException e) {
try {
content.close();
} catch (IOExcepti... | java | public byte[] getObjectContent(GetObjectRequest request) {
BosObjectInputStream content = this.getObject(request).getObjectContent();
try {
return IOUtils.toByteArray(content);
} catch (IOException e) {
try {
content.close();
} catch (IOExcepti... | [
"public",
"byte",
"[",
"]",
"getObjectContent",
"(",
"GetObjectRequest",
"request",
")",
"{",
"BosObjectInputStream",
"content",
"=",
"this",
".",
"getObject",
"(",
"request",
")",
".",
"getObjectContent",
"(",
")",
";",
"try",
"{",
"return",
"IOUtils",
".",
... | Gets the object content stored in Bos under the specified bucket and key.
@param request The request object containing all the options on how to download the Bos object content.
@return The object content stored in Bos in the specified bucket and key. | [
"Gets",
"the",
"object",
"content",
"stored",
"in",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L724-L742 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.putObject | public PutObjectResponse putObject(String bucketName, String key, File file, ObjectMetadata metadata) {
return this.putObject(new PutObjectRequest(bucketName, key, file, metadata));
} | java | public PutObjectResponse putObject(String bucketName, String key, File file, ObjectMetadata metadata) {
return this.putObject(new PutObjectRequest(bucketName, key, file, metadata));
} | [
"public",
"PutObjectResponse",
"putObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"File",
"file",
",",
"ObjectMetadata",
"metadata",
")",
"{",
"return",
"this",
".",
"putObject",
"(",
"new",
"PutObjectRequest",
"(",
"bucketName",
",",
"key",
... | Uploads the specified file and object metadata to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param file The file containing the data to be uploaded to Bos.
@param metadat... | [
"Uploads",
"the",
"specified",
"file",
"and",
"object",
"metadata",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L802-L804 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.putObject | public PutObjectResponse putObject(String bucketName, String key, String value) {
try {
return this.putObject(bucketName, key, value.getBytes(DEFAULT_ENCODING), new ObjectMetadata());
} catch (UnsupportedEncodingException e) {
throw new BceClientException("Fail to get bytes.", e)... | java | public PutObjectResponse putObject(String bucketName, String key, String value) {
try {
return this.putObject(bucketName, key, value.getBytes(DEFAULT_ENCODING), new ObjectMetadata());
} catch (UnsupportedEncodingException e) {
throw new BceClientException("Fail to get bytes.", e)... | [
"public",
"PutObjectResponse",
"putObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"String",
"value",
")",
"{",
"try",
"{",
"return",
"this",
".",
"putObject",
"(",
"bucketName",
",",
"key",
",",
"value",
".",
"getBytes",
"(",
"DEFAULT_ENCOD... | Uploads the specified string to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param value The string containing the value to be uploaded to Bos.
@return A PutObjectResponse ... | [
"Uploads",
"the",
"specified",
"string",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L814-L820 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.putObject | public PutObjectResponse putObject(String bucketName, String key, byte[] value, ObjectMetadata metadata) {
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length);
}
return this.putObject(new PutObjectRequest(bucketName, key, RestartableInputStream.wrap(value... | java | public PutObjectResponse putObject(String bucketName, String key, byte[] value, ObjectMetadata metadata) {
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length);
}
return this.putObject(new PutObjectRequest(bucketName, key, RestartableInputStream.wrap(value... | [
"public",
"PutObjectResponse",
"putObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"byte",
"[",
"]",
"value",
",",
"ObjectMetadata",
"metadata",
")",
"{",
"if",
"(",
"metadata",
".",
"getContentLength",
"(",
")",
"==",
"-",
"1",
")",
"{",
... | Uploads the specified bytes and object metadata to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param value The bytes containing the value to be uploaded to Bos.
@param met... | [
"Uploads",
"the",
"specified",
"bytes",
"and",
"object",
"metadata",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L862-L867 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.putObject | public PutObjectResponse putObject(String bucketName, String key, InputStream input) {
return this.putObject(new PutObjectRequest(bucketName, key, input));
} | java | public PutObjectResponse putObject(String bucketName, String key, InputStream input) {
return this.putObject(new PutObjectRequest(bucketName, key, input));
} | [
"public",
"PutObjectResponse",
"putObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"InputStream",
"input",
")",
"{",
"return",
"this",
".",
"putObject",
"(",
"new",
"PutObjectRequest",
"(",
"bucketName",
",",
"key",
",",
"input",
")",
")",
"... | Uploads the specified input stream to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param input The input stream containing the value to be uploaded to Bos.
@return A PutObj... | [
"Uploads",
"the",
"specified",
"input",
"stream",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L877-L879 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.deleteObject | public void deleteObject(DeleteObjectRequest request) {
checkNotNull(request, "request should not be null.");
assertStringNotNullOrEmpty(request.getKey(), "object key should not be null or empty");
this.invokeHttpClient(this.createRequest(request, HttpMethodName.DELETE), BosResponse.class);
... | java | public void deleteObject(DeleteObjectRequest request) {
checkNotNull(request, "request should not be null.");
assertStringNotNullOrEmpty(request.getKey(), "object key should not be null or empty");
this.invokeHttpClient(this.createRequest(request, HttpMethodName.DELETE), BosResponse.class);
... | [
"public",
"void",
"deleteObject",
"(",
"DeleteObjectRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"assertStringNotNullOrEmpty",
"(",
"request",
".",
"getKey",
"(",
")",
",",
"\"object key should not be n... | Deletes the specified object in the specified bucket.
@param request The request object containing all options for deleting a Bos object. | [
"Deletes",
"the",
"specified",
"object",
"in",
"the",
"specified",
"bucket",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1064-L1069 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.uploadPart | public UploadPartResponse uploadPart(UploadPartRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getPartSize(), "partSize should not be null");
checkNotNull(request.getPartNumber(), "partNumber should not be null");
if (request.getPartSize() >... | java | public UploadPartResponse uploadPart(UploadPartRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getPartSize(), "partSize should not be null");
checkNotNull(request.getPartNumber(), "partNumber should not be null");
if (request.getPartSize() >... | [
"public",
"UploadPartResponse",
"uploadPart",
"(",
"UploadPartRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"request",
".",
"getPartSize",
"(",
")",
",",
"\"partSize should not be nu... | Uploads a part in a multipart upload. You must initiate a multipart
upload before you can upload any part.
@param request The UploadPartRequest object that specifies all the parameters of this operation.
@return An UploadPartResponse from Bos containing the part number and ETag of the new part. | [
"Uploads",
"a",
"part",
"in",
"a",
"multipart",
"upload",
".",
"You",
"must",
"initiate",
"a",
"multipart",
"upload",
"before",
"you",
"can",
"upload",
"any",
"part",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1120-L1177 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.listMultipartUploads | public ListMultipartUploadsResponse listMultipartUploads(ListMultipartUploadsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("uploads", null);
String ... | java | public ListMultipartUploadsResponse listMultipartUploads(ListMultipartUploadsRequest request) {
checkNotNull(request, "request should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET);
internalRequest.addParameter("uploads", null);
String ... | [
"public",
"ListMultipartUploadsResponse",
"listMultipartUploads",
"(",
"ListMultipartUploadsRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest"... | Lists in-progress multipart uploads. An in-progress multipart upload is a multipart upload that has
been initiated, using the InitiateMultipartUpload request, but has not yet been completed or aborted.
@param request The ListMultipartUploadsRequest object that specifies all the parameters of this operation.
@return A ... | [
"Lists",
"in",
"-",
"progress",
"multipart",
"uploads",
".",
"An",
"in",
"-",
"progress",
"multipart",
"upload",
"is",
"a",
"multipart",
"upload",
"that",
"has",
"been",
"initiated",
"using",
"the",
"InitiateMultipartUpload",
"request",
"but",
"has",
"not",
"y... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1354-L1380 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.populateRequestMetadata | private static void populateRequestMetadata(InternalRequest request, ObjectMetadata metadata) {
if (metadata.getContentType() != null) {
request.addHeader(Headers.CONTENT_TYPE, metadata.getContentType());
}
if (metadata.getContentMd5() != null) {
request.addHeader(Headers... | java | private static void populateRequestMetadata(InternalRequest request, ObjectMetadata metadata) {
if (metadata.getContentType() != null) {
request.addHeader(Headers.CONTENT_TYPE, metadata.getContentType());
}
if (metadata.getContentMd5() != null) {
request.addHeader(Headers... | [
"private",
"static",
"void",
"populateRequestMetadata",
"(",
"InternalRequest",
"request",
",",
"ObjectMetadata",
"metadata",
")",
"{",
"if",
"(",
"metadata",
".",
"getContentType",
"(",
")",
"!=",
"null",
")",
"{",
"request",
".",
"addHeader",
"(",
"Headers",
... | Populates the specified request object with the appropriate headers from the ObjectMetadata object.
@param request The request to populate with headers.
@param metadata The metadata containing the header information to include in the request. | [
"Populates",
"the",
"specified",
"request",
"object",
"with",
"the",
"appropriate",
"headers",
"from",
"the",
"ObjectMetadata",
"object",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1388-L1435 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.createRequest | private InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod) {
String bucketName = null;
String key = null;
// when custom_endpoint, bucketName should be null when set up InternalRequest.
if (bceRequest instanceof GenericBucketRequest && !((BosClientCon... | java | private InternalRequest createRequest(AbstractBceRequest bceRequest, HttpMethodName httpMethod) {
String bucketName = null;
String key = null;
// when custom_endpoint, bucketName should be null when set up InternalRequest.
if (bceRequest instanceof GenericBucketRequest && !((BosClientCon... | [
"private",
"InternalRequest",
"createRequest",
"(",
"AbstractBceRequest",
"bceRequest",
",",
"HttpMethodName",
"httpMethod",
")",
"{",
"String",
"bucketName",
"=",
"null",
";",
"String",
"key",
"=",
"null",
";",
"// when custom_endpoint, bucketName should be null when set u... | Creates and initializes a new request object for the specified Bos resource. This method is responsible
for determining the right way to address resources.
@param bceRequest The original request, as created by the user.
@param httpMethod The HTTP method to use when sending the request.
@return A new request object, po... | [
"Creates",
"and",
"initializes",
"a",
"new",
"request",
"object",
"for",
"the",
"specified",
"Bos",
"resource",
".",
"This",
"method",
"is",
"responsible",
"for",
"determining",
"the",
"right",
"way",
"to",
"address",
"resources",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1446-L1460 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.addResponseHeaderParameters | private void addResponseHeaderParameters(InternalRequest request, ResponseHeaderOverrides responseHeaders) {
if (responseHeaders != null) {
if (responseHeaders.getCacheControl() != null) {
request.addParameter(ResponseHeaderOverrides.RESPONSE_HEADER_CACHE_CONTROL,
... | java | private void addResponseHeaderParameters(InternalRequest request, ResponseHeaderOverrides responseHeaders) {
if (responseHeaders != null) {
if (responseHeaders.getCacheControl() != null) {
request.addParameter(ResponseHeaderOverrides.RESPONSE_HEADER_CACHE_CONTROL,
... | [
"private",
"void",
"addResponseHeaderParameters",
"(",
"InternalRequest",
"request",
",",
"ResponseHeaderOverrides",
"responseHeaders",
")",
"{",
"if",
"(",
"responseHeaders",
"!=",
"null",
")",
"{",
"if",
"(",
"responseHeaders",
".",
"getCacheControl",
"(",
")",
"!... | Adds response headers parameters to the request given, if non-null.
@param request The request to add the response header parameters to.
@param responseHeaders The full set of response headers to add, or null for none. | [
"Adds",
"response",
"headers",
"parameters",
"to",
"the",
"request",
"given",
"if",
"non",
"-",
"null",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1584-L1610 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.appendObject | public AppendObjectResponse appendObject(String bucketName, String key, File file) {
return this.appendObject(new AppendObjectRequest(bucketName, key, file));
} | java | public AppendObjectResponse appendObject(String bucketName, String key, File file) {
return this.appendObject(new AppendObjectRequest(bucketName, key, file));
} | [
"public",
"AppendObjectResponse",
"appendObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"File",
"file",
")",
"{",
"return",
"this",
".",
"appendObject",
"(",
"new",
"AppendObjectRequest",
"(",
"bucketName",
",",
"key",
",",
"file",
")",
")",
... | Uploads the specified appendable file to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param file The appendable file containing the data to be uploaded to Bos.
@return An A... | [
"Uploads",
"the",
"specified",
"appendable",
"file",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1673-L1675 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.appendObject | public AppendObjectResponse appendObject(String bucketName, String key, String value, ObjectMetadata metadata) {
try {
return this.appendObject(bucketName, key, value.getBytes(DEFAULT_ENCODING), metadata);
} catch (UnsupportedEncodingException e) {
throw new BceClientException("F... | java | public AppendObjectResponse appendObject(String bucketName, String key, String value, ObjectMetadata metadata) {
try {
return this.appendObject(bucketName, key, value.getBytes(DEFAULT_ENCODING), metadata);
} catch (UnsupportedEncodingException e) {
throw new BceClientException("F... | [
"public",
"AppendObjectResponse",
"appendObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"String",
"value",
",",
"ObjectMetadata",
"metadata",
")",
"{",
"try",
"{",
"return",
"this",
".",
"appendObject",
"(",
"bucketName",
",",
"key",
",",
"va... | Uploads the specified string and object metadata to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param value The string containing the value to be uploaded to Bos.
@param m... | [
"Uploads",
"the",
"specified",
"string",
"and",
"object",
"metadata",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1717-L1723 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.appendObject | public AppendObjectResponse appendObject(
String bucketName, String key, byte[] value, ObjectMetadata metadata) {
checkNotNull(metadata, "metadata should not be null.");
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length);
}
return thi... | java | public AppendObjectResponse appendObject(
String bucketName, String key, byte[] value, ObjectMetadata metadata) {
checkNotNull(metadata, "metadata should not be null.");
if (metadata.getContentLength() == -1) {
metadata.setContentLength(value.length);
}
return thi... | [
"public",
"AppendObjectResponse",
"appendObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"byte",
"[",
"]",
"value",
",",
"ObjectMetadata",
"metadata",
")",
"{",
"checkNotNull",
"(",
"metadata",
",",
"\"metadata should not be null.\"",
")",
";",
"i... | Uploads the appendable bytes and object metadata to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param value The bytes containing the value to be uploaded to Bos.
@param me... | [
"Uploads",
"the",
"appendable",
"bytes",
"and",
"object",
"metadata",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1747-L1755 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/BosClient.java | BosClient.appendObject | public AppendObjectResponse appendObject(String bucketName, String key, InputStream input) {
return this.appendObject(new AppendObjectRequest(bucketName, key, input));
} | java | public AppendObjectResponse appendObject(String bucketName, String key, InputStream input) {
return this.appendObject(new AppendObjectRequest(bucketName, key, input));
} | [
"public",
"AppendObjectResponse",
"appendObject",
"(",
"String",
"bucketName",
",",
"String",
"key",
",",
"InputStream",
"input",
")",
"{",
"return",
"this",
".",
"appendObject",
"(",
"new",
"AppendObjectRequest",
"(",
"bucketName",
",",
"key",
",",
"input",
")"... | Uploads the appendable input stream to Bos under the specified bucket and key name.
@param bucketName The name of an existing bucket, to which you have Write permission.
@param key The key under which to store the specified file.
@param input The input stream containing the value to be uploaded to Bos.
@return An Appe... | [
"Uploads",
"the",
"appendable",
"input",
"stream",
"to",
"Bos",
"under",
"the",
"specified",
"bucket",
"and",
"key",
"name",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/BosClient.java#L1765-L1767 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/dcc/DccClient.java | DccClient.getDedicatedHost | public GetDedicatedHostResponse getDedicatedHost(GetDedicatedHostRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getDedicatedHostId(), "request dedicatedHostId should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpM... | java | public GetDedicatedHostResponse getDedicatedHost(GetDedicatedHostRequest request) {
checkNotNull(request, "request should not be null.");
checkNotNull(request.getDedicatedHostId(), "request dedicatedHostId should not be null.");
InternalRequest internalRequest = this.createRequest(request, HttpM... | [
"public",
"GetDedicatedHostResponse",
"getDedicatedHost",
"(",
"GetDedicatedHostRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"request should not be null.\"",
")",
";",
"checkNotNull",
"(",
"request",
".",
"getDedicatedHostId",
"(",
")",
",",
"\"... | Get the detail information of specified dcc.
@param request The request containing all options for getting the instance info.
@return A dcc detail model for the dedicatedHostId. | [
"Get",
"the",
"detail",
"information",
"of",
"specified",
"dcc",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/dcc/DccClient.java#L86-L91 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/dcc/DccClient.java | DccClient.listDedicatedHosts | public ListDedicatedHostsResponse listDedicatedHosts(ListDedicatedHostsRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.addParameter("marker", request.getMarker());
... | java | public ListDedicatedHostsResponse listDedicatedHosts(ListDedicatedHostsRequest request) {
InternalRequest internalRequest = this.createRequest(request, HttpMethodName.GET, null);
if (!Strings.isNullOrEmpty(request.getMarker())) {
internalRequest.addParameter("marker", request.getMarker());
... | [
"public",
"ListDedicatedHostsResponse",
"listDedicatedHosts",
"(",
"ListDedicatedHostsRequest",
"request",
")",
"{",
"InternalRequest",
"internalRequest",
"=",
"this",
".",
"createRequest",
"(",
"request",
",",
"HttpMethodName",
".",
"GET",
",",
"null",
")",
";",
"if"... | get a list of hosts owned by the authenticated user and specified conditions
@param request The request containing all options for query
@return | [
"get",
"a",
"list",
"of",
"hosts",
"owned",
"by",
"the",
"authenticated",
"user",
"and",
"specified",
"conditions"
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/dcc/DccClient.java#L107-L119 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/bos/model/CompleteMultipartUploadRequest.java | CompleteMultipartUploadRequest.setPartETags | public void setPartETags(List<PartETag> partETags) {
checkNotNull(partETags, "partETags should not be null.");
for (int i = 0; i < partETags.size(); ++i) {
PartETag partETag = partETags.get(i);
checkNotNull(partETag, "partETags[%s] should not be null.", i);
int partNu... | java | public void setPartETags(List<PartETag> partETags) {
checkNotNull(partETags, "partETags should not be null.");
for (int i = 0; i < partETags.size(); ++i) {
PartETag partETag = partETags.get(i);
checkNotNull(partETag, "partETags[%s] should not be null.", i);
int partNu... | [
"public",
"void",
"setPartETags",
"(",
"List",
"<",
"PartETag",
">",
"partETags",
")",
"{",
"checkNotNull",
"(",
"partETags",
",",
"\"partETags should not be null.\"",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"partETags",
".",
"size",
"("... | Sets the list of part numbers and ETags that identify the individual
parts of the multipart upload to complete.
@param partETags The list of part numbers and ETags that identify the
individual parts of the multipart upload to complete. | [
"Sets",
"the",
"list",
"of",
"part",
"numbers",
"and",
"ETags",
"that",
"identify",
"the",
"individual",
"parts",
"of",
"the",
"multipart",
"upload",
"to",
"complete",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/bos/model/CompleteMultipartUploadRequest.java#L170-L192 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssClient.java | LssClient.createPreset | public CreatePresetResponse createPreset(CreatePresetRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getName(),
"The parameter name should NOT be null or empty string.");
if (request.getAudio() != null) {
... | java | public CreatePresetResponse createPreset(CreatePresetRequest request) {
checkNotNull(request, "The parameter request should NOT be null.");
checkStringNotEmpty(request.getName(),
"The parameter name should NOT be null or empty string.");
if (request.getAudio() != null) {
... | [
"public",
"CreatePresetResponse",
"createPreset",
"(",
"CreatePresetRequest",
"request",
")",
"{",
"checkNotNull",
"(",
"request",
",",
"\"The parameter request should NOT be null.\"",
")",
";",
"checkStringNotEmpty",
"(",
"request",
".",
"getName",
"(",
")",
",",
"\"Th... | Create a live preset which contains parameters needed in the live stream service.
@param request The request object containing all options for creating presets.
@return the response | [
"Create",
"a",
"live",
"preset",
"which",
"contains",
"parameters",
"needed",
"in",
"the",
"live",
"stream",
"service",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssClient.java#L290-L327 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssClient.java | LssClient.createPreset | public CreatePresetResponse createPreset(String name, String description, Audio audio, Video video,
Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks) {
CreatePresetRequest request = new CreatePresetRequest();
request.setForwardOnly(false);
request.setName(name);
... | java | public CreatePresetResponse createPreset(String name, String description, Audio audio, Video video,
Hls hls, Rtmp rtmp, LiveThumbnail thumbnail, Watermarks watermarks) {
CreatePresetRequest request = new CreatePresetRequest();
request.setForwardOnly(false);
request.setName(name);
... | [
"public",
"CreatePresetResponse",
"createPreset",
"(",
"String",
"name",
",",
"String",
"description",
",",
"Audio",
"audio",
",",
"Video",
"video",
",",
"Hls",
"hls",
",",
"Rtmp",
"rtmp",
",",
"LiveThumbnail",
"thumbnail",
",",
"Watermarks",
"watermarks",
")",
... | Create a live preset which contains parameters needed in the live stream service, and not in forward only
mode, so that the input stream will be transcoded according to audio and video parameters.
@param name The name of the new live preset.
@param description The description of the new live preset
@param audio Specif... | [
"Create",
"a",
"live",
"preset",
"which",
"contains",
"parameters",
"needed",
"in",
"the",
"live",
"stream",
"service",
"and",
"not",
"in",
"forward",
"only",
"mode",
"so",
"that",
"the",
"input",
"stream",
"will",
"be",
"transcoded",
"according",
"to",
"aud... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssClient.java#L344-L358 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssClient.java | LssClient.createForwardOnlyPreset | public CreatePresetResponse createForwardOnlyPreset(String name, String description, Hls hls, Rtmp rtmp,
LiveThumbnail thumbnail, Watermarks watermarks) {
CreatePresetRequest request = new CreatePresetRequest();
request.setForwardOnly(true);
request.setName(name);
request.set... | java | public CreatePresetResponse createForwardOnlyPreset(String name, String description, Hls hls, Rtmp rtmp,
LiveThumbnail thumbnail, Watermarks watermarks) {
CreatePresetRequest request = new CreatePresetRequest();
request.setForwardOnly(true);
request.setName(name);
request.set... | [
"public",
"CreatePresetResponse",
"createForwardOnlyPreset",
"(",
"String",
"name",
",",
"String",
"description",
",",
"Hls",
"hls",
",",
"Rtmp",
"rtmp",
",",
"LiveThumbnail",
"thumbnail",
",",
"Watermarks",
"watermarks",
")",
"{",
"CreatePresetRequest",
"request",
... | Create a live preset which contains parameters needed in the live stream service, and in forward only mode, in
which the input stream's resolution ratio and code rate will be kept unchanged.
@param name The name of the new live preset.
@param description The description of the new live preset
@param hls Specify the h... | [
"Create",
"a",
"live",
"preset",
"which",
"contains",
"parameters",
"needed",
"in",
"the",
"live",
"stream",
"service",
"and",
"in",
"forward",
"only",
"mode",
"in",
"which",
"the",
"input",
"stream",
"s",
"resolution",
"ratio",
"and",
"code",
"rate",
"will"... | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssClient.java#L373-L385 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssClient.java | LssClient.listPresets | public ListPresetsResponse listPresets() {
ListPresetsRequest request = new ListPresetsRequest();
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, LIVE_PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
} | java | public ListPresetsResponse listPresets() {
ListPresetsRequest request = new ListPresetsRequest();
InternalRequest internalRequest = createRequest(HttpMethodName.GET, request, LIVE_PRESET);
return invokeHttpClient(internalRequest, ListPresetsResponse.class);
} | [
"public",
"ListPresetsResponse",
"listPresets",
"(",
")",
"{",
"ListPresetsRequest",
"request",
"=",
"new",
"ListPresetsRequest",
"(",
")",
";",
"InternalRequest",
"internalRequest",
"=",
"createRequest",
"(",
"HttpMethodName",
".",
"GET",
",",
"request",
",",
"LIVE... | List all your live presets.
@return The list of all your live presets | [
"List",
"all",
"your",
"live",
"presets",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssClient.java#L393-L397 | train |
baidubce/bce-sdk-java | src/main/java/com/baidubce/services/lss/LssClient.java | LssClient.listSessions | public ListSessionsResponse listSessions(String status) {
ListSessionsRequest request = new ListSessionsRequest().withStatus(status);
return listSessions(request);
} | java | public ListSessionsResponse listSessions(String status) {
ListSessionsRequest request = new ListSessionsRequest().withStatus(status);
return listSessions(request);
} | [
"public",
"ListSessionsResponse",
"listSessions",
"(",
"String",
"status",
")",
"{",
"ListSessionsRequest",
"request",
"=",
"new",
"ListSessionsRequest",
"(",
")",
".",
"withStatus",
"(",
"status",
")",
";",
"return",
"listSessions",
"(",
"request",
")",
";",
"}... | List all your live sessions with given status.
@param status Live session status.
@return The list of all your live sessions. | [
"List",
"all",
"your",
"live",
"sessions",
"with",
"given",
"status",
"."
] | f7140f28dd82121515c88ded7bfe769a37d0ec4a | https://github.com/baidubce/bce-sdk-java/blob/f7140f28dd82121515c88ded7bfe769a37d0ec4a/src/main/java/com/baidubce/services/lss/LssClient.java#L556-L559 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.